原生 Screen.prototype 的 width 和 height getter
Unmodified browsers expose native getter functions named 'get width' and 'get height' that serialize with '[native code]'.
BotRefund 检查 Screen.prototype 的 width 和 height 属性描述符,以确认原生 getter 名称及标准的 '[native code]' 序列化。
The collector calls Object.getOwnPropertyDescriptor(Screen.prototype, 'width') and Object.getOwnPropertyDescriptor(Screen.prototype, 'height') to inspect how screen dimensions are defined.
It serializes each getter with Function.prototype.toString to verify the expected native getter name (get width or get height) and [native code] body signature.
Viewport-spoofing extensions and naive headless browser patches frequently wrap screen.width or screen.height inside custom JavaScript getter closures whose serialized source exposes script wrappers rather than native C++ accessors.
注意:移动 WebView 和合法的视口缩放工具可以自定义屏幕描述符,因此触摸会话上的发现会被大幅弱化,且经过验证的人工交互会抑制误报。
Unmodified browsers expose native getter functions named 'get width' and 'get height' that serialize with '[native code]'.
Non-native JavaScript functions overriding screen.width or screen.height indicate screen spoofing, softened on touch devices and suppressed on human interaction.
Forensic significance: Reliable indicator of screen-resolution tampering on desktop sessions; softened on mobile touch devices and overridden by real human interaction to protect embedded WebViews.