Synchronized notification states
In standard Chrome, Firefox, and Safari profiles, fresh sessions report Notification.permission as 'default' alongside 'prompt' (or matching 'denied'/'granted' values), passing cleanly.
BotRefund compares Notification.permission against navigator.permissions.query({ name: 'notifications' }) to detect contradictory denied and prompt states in headless browsers.
When both the Notifications API and Permissions API are available in the browser, the coherence probe asynchronously calls navigator.permissions.query({ name: 'notifications' }) and compares the resulting PermissionStatus.state against the synchronous Notification.permission property.
It records a state contradiction whenever Notification.permission reports 'denied' while PermissionStatus.state reports 'prompt', or conversely when Notification.permission reports 'prompt' while PermissionStatus.state reports 'denied'.
Headless Chromium suppresses interactive notification prompts internally, frequently forcing Notification.permission to 'denied' while a default or partially patched permissions.query implementation still returns 'prompt'.
Because privacy-hardened browsers, strict cookie-blocking profiles, or enterprise group policies can occasionally restrict notification interfaces unevenly, this discrepancy is evaluated alongside human interaction so genuine interactive users are never penalized on its own.
In standard Chrome, Firefox, and Safari profiles, fresh sessions report Notification.permission as 'default' alongside 'prompt' (or matching 'denied'/'granted' values), passing cleanly.
A headless or partially patched browser reports 'denied' on Notification.permission while permissions.query returns 'prompt' (or the reverse).
Forensic significance: Supporting browser-coherence indicator effective against headless automation; automatically suppressed whenever verified user interaction is present.