botrefund.com
← BotRefund Home BROWSER & INTERACTION SIGNAL

Screen Getter Function Integrity

BotRefund inspects Screen.prototype width and height property descriptors to confirm native getter names and standard '[native code]' serialization.

What we test

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.

Why it matters

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.

Caveat: mobile WebViews and legitimate viewport-scaling tools can customize screen descriptors, so findings on touch sessions are heavily softened and verified human interaction suppresses false alerts.

EXPLANATION

How to interpret the response

01 EXPECTED RESPONSE

Native Screen.prototype width and height getters

Unmodified browsers expose native getter functions named 'get width' and 'get height' that serialize with '[native code]'.

Example result Width getter: native code • Height getter: native code • Touch mode: no — Result: native descriptors verified
02 POSSIBLE AUTOMATION SIGNAL

Overridden Screen getter lacking native signature

Non-native JavaScript functions overriding screen.width or screen.height indicate screen spoofing, softened on touch devices and suppressed on human interaction.

Example result Width getter: custom JS function • [native code]: absent — Result: screen getter tampering detected

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.