Make `navigator.permissions.query` aware of platform permission when appropriate
Categories
(Core :: DOM: Core & HTML, enhancement)
Tracking
()
People
(Reporter: saschanaz, Assigned: saschanaz)
References
Details
(Keywords: webcompat:platform-bug)
Attachments
(1 file, 7 external files)
|
15.75 KB,
image/png
|
Details |
Currently it fully depends on PermissionManager which is only aware of browser permissions, but it should return denied when OS denies the permission.
| Assignee | ||
Updated•8 months ago
|
| Assignee | ||
Comment 1•8 months ago
|
||
Updated•8 months ago
|
Comment 4•8 months ago
|
||
Backed out for causing wpt and mochitest failures.
- Backout link
- Push with failures
- Failure Log mochitest
- Failure Log wpt
Updated•8 months ago
|
| Assignee | ||
Comment 5•8 months ago
|
||
Updated•8 months ago
|
Comment 7•8 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/449b238627e4
https://hg.mozilla.org/mozilla-central/rev/0bef0a15df9b
Updated•8 months ago
|
backed out for causing bug 2023331: https://hg.mozilla.org/integration/autoland/rev/9253acfa52c5
| Assignee | ||
Comment 10•8 months ago
|
||
Should probably use PBackground instead for worker usage, PContent only supports main thread.
Comment 11•8 months ago
|
||
Backout merged to central https://hg-edge.mozilla.org/mozilla-central/rev/9253acfa52c54a538d65a51fee5e30fe2b14d6fa
Comment 12•7 months ago
|
||
Issues navigator.permissions.query, for currently supported and unsupported
permissions, from a web worker. This checks that the call is thread safe
for workers.
Updated•7 months ago
|
Updated•7 months ago
|
| Assignee | ||
Updated•7 months ago
|
| Assignee | ||
Comment 13•7 months ago
|
||
| Assignee | ||
Updated•7 months ago
|
Comment 14•7 months ago
|
||
Comment 15•7 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/e8a04d7e8811
https://hg.mozilla.org/mozilla-central/rev/8641863e8aa2
https://hg.mozilla.org/mozilla-central/rev/40098e1b94b1
Updated•6 months ago
|
Updated•6 months ago
|
Updated•6 months ago
|
| Assignee | ||
Comment 18•6 months ago
|
||
Original Revision: https://phabricator.services.mozilla.com/D286979
Updated•6 months ago
|
| Assignee | ||
Comment 19•6 months ago
|
||
Original Revision: https://phabricator.services.mozilla.com/D287452
Updated•6 months ago
|
| Assignee | ||
Comment 20•6 months ago
|
||
Original Revision: https://phabricator.services.mozilla.com/D292777
Updated•6 months ago
|
Comment 21•6 months ago
|
||
firefox-release Uplift Approval Request
- User impact if declined/Reason for urgency: People who granted geolocation permission in Google Maps but have not granted system permission to Firefox will get system prompt whenever they visit Google. See bug 2034518.
- Code covered by automated testing?: yes
- Fix verified in Nightly?: yes
- Needs manual QE testing?: yes
- Steps to reproduce for manual QE testing: Please follow https://bugzilla.mozilla.org/show_bug.cgi?id=2034518#c0.
- Risk associated with taking this patch: low
- Explanation of risk level: Has already been in nightly and beta, the logic is relatively simple.
- String changes made/needed?: N/A
- Is Android affected?: no
| Assignee | ||
Comment 22•6 months ago
|
||
Henrik, you may also want to uplift the remote pref patch (and for macOS one too, we want to uplift that too).
Updated•6 months ago
|
Updated•6 months ago
|
Updated•6 months ago
|
Updated•6 months ago
|
Comment 23•6 months ago
|
||
| uplift | ||
Updated•6 months ago
|
Comment 24•6 months ago
|
||
The patch on bug 2031230 was already uplifted. Thank you for letting us know Kagami!
Comment 25•6 months ago
|
||
Reproduced the initial issues as described in Bug 2034518 Comment 0 using Nightly 151.0a1 (Build ID: 20260406213346) - system prompt and browser permission was requested when visiting Google.com.
Verified as fixed using Firefox 151.0b2 on Windows 11 and macOS 15 where the system prompt and the browser permissions were no longer requested when navigating to Google.com after accessing and giving browser permissions on Google maps.
However, I noticed that when using Firefox 151.0b2 on Ubuntu 24.04 - the Location permission is still visible in the Address Bar when navigating to Google.com after accessing and giving permissions on Google maps - please see the screenshot.
@Kagami Rosylight, is this behavior expected on Ubuntu 24.04? Could you please take a look?
| Assignee | ||
Comment 26•6 months ago
•
|
||
We don't follow system permission on Linux right now, so it's expected currently. Thanks!
Edit: bug 2035203.
Comment 27•6 months ago
|
||
(In reply to Kagami Rosylight [:saschanaz] (they/them) from comment #26)
We don't follow system permission on Linux right now, so it's expected currently. Thanks!
Thank you !
Based on this and on Comment 25, I'm setting the status for firefox151 to verified.
Comment 28•6 months ago
|
||
Verified as fixed using Firefox 150.0.1 (Build ID: 20260427013024) on Windows 11 and macOS 15 - system prompt and the browser permissions are no longer requested when navigating to Google.com after accessing and giving browser permissions on Google maps.
Description
•