Same-window notification permission states agree
Authentic browsers return matching notification permission states across both navigator.permissions.query and Notification.permission on the main window.
BotRefund compares navigator.permissions.query({ name: 'notifications' }) with Notification.permission in the main window to catch shimmed states.
Executing directly inside the main browser window, the probe invokes await navigator.permissions.query({ name: 'notifications' }) and compares its returned .state value against synchronous Notification.permission.
It specifically checks for an inconsistent split state where the asynchronous Permissions API claims 'granted' while synchronous Notification.permission simultaneously reports 'default' for the current origin.
Stealth plugins frequently patch navigator.permissions.query to return 'granted' so fresh automated sessions look like established human visitors, while overlooking the static Notification.permission getter on the global window.
In genuine Chromium, Firefox, and Safari builds, both APIs read from the same underlying origin permission store and agree. Because unusual browser state transitions can rarely desync transiently, this check requires corroboration and yields to strong human behavior.
Authentic browsers return matching notification permission states across both navigator.permissions.query and Notification.permission on the main window.
Reporting 'granted' from the Permissions API while Notification.permission stays 'default' indicates an incomplete JavaScript permission override.
Forensic significance: Strong supporting indicator of JavaScript permission-API spoofing; evaluated alongside other browser integrity signals and verified user interaction rather than blocking alone.