Matching screen depths with 24/32-bit WebGL framebuffer
Desktop displays report matching 24-bit colorDepth and pixelDepth alongside 32-bit RGBA WebGL (or matching 30-bit HDR depths), while mobile WebViews without WebGL pass cleanly.
BotRefund compares screen.colorDepth, screen.pixelDepth, and WebGL framebuffer RGBA bit depths to spot 16-bit virtual displays and incomplete screen spoofing.
The display coherence probe reads screen.colorDepth and screen.pixelDepth, acquires a WebGL context, and sums RED_BITS + GREEN_BITS + BLUE_BITS + ALPHA_BITS from the framebuffer.
It flags a mismatch if colorDepth differs from pixelDepth, if a 24-bit desktop screen has no WebGL context, or if 24-bit screen depth pairs with a WebGL bit sum other than 24 or 32. Mobile sessions lacking WebGL and interactive Android WebViews are explicitly exempted.
Minimal virtual framebuffers such as 16-bit Xvfb, along with naive screen spoofers that alter screen.colorDepth without adjusting pixelDepth or WebGL renderbuffers, create conflicting bit-depth values.
Wide-gamut and HDR monitors (30-bit depth) pass cleanly whenever colorDepth equals pixelDepth, and mobile exemptions protect legitimate phones or WebViews with restricted GPU access.
Desktop displays report matching 24-bit colorDepth and pixelDepth alongside 32-bit RGBA WebGL (or matching 30-bit HDR depths), while mobile WebViews without WebGL pass cleanly.
Reporting unequal colorDepth and pixelDepth, or claiming 24-bit color over a 16-bit or absent desktop WebGL framebuffer, flags likely virtual display spoofing.
Forensic significance: Supporting display-coherence signal that exposes 16-bit virtual displays and inconsistent screen spoofing while exempting mobile WebViews and HDR displays.