botrefund.com
← BotRefund Home BROWSER PERMISSION COHERENCE

Notification Permission API Mismatch

BotRefund compares Notification.permission against navigator.permissions.query({ name: 'notifications' }) to detect contradictory denied and prompt states in headless browsers.

What we test

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'.

Why it matters

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.

EXPLANATION

How to interpret the response

01 EXPECTED RESPONSE

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.

Example result Notification.permission: default • Permissions API: prompt — Result: permission states synchronized
02 POSSIBLE AUTOMATION SIGNAL

Contradictory denied versus prompt state

A headless or partially patched browser reports 'denied' on Notification.permission while permissions.query returns 'prompt' (or the reverse).

Example result Notification.permission: denied • Permissions API: prompt — Result: contradictory headless permission state

Forensic significance: Supporting browser-coherence indicator effective against headless automation; automatically suppressed whenever verified user interaction is present.