Open
Bug 2021889
Opened 8 months ago
Updated 8 months ago
Make nsContentPermissionHelper aware of platform permission when appropriate
Categories
(Core :: DOM: Core & HTML, enhancement)
Core
DOM: Core & HTML
Tracking
()
NEW
People
(Reporter: saschanaz, Unassigned)
Details
Currently ContentPermissionRequestBase calls nsContentPermissionUtils::AskPermission which calls back if the browser allows the permission, which is called by permission UI.
But we have OS permission nowadays in 2026 even on desktop platforms, meaning we should also consider them. For web content it doesn't matter whether it's the browser or the OS denying the permission, so ideally ContentPermissionHelper should only call the Allow callback when both are allowed, and call Cancel when any one of them are denied.
We have some custom logic in dom/geolocation which should be moved to the helper.
You need to log in
before you can comment on or make changes to this bug.
Description
•