Open Bug 1742728 Opened 3 years ago Updated 3 years ago

Geolocation OS-level permission changes are not captured by browser

Categories

(Core :: Permission Manager, defect, P3)

defect

Tracking

()

UNCONFIRMED

People

(Reporter: marcos, Unassigned)

References

()

Details

(Keywords: parity-chrome)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15

Steps to reproduce:

On MacOS, for instance:

  1. Go to, for instance: https://www.w3schools.com/html/html5_geolocation.asp
  2. Click on "Try it"
  3. Allow geolocation
  4. Add the following code to the developer console:

x = navigator.permissions.query({name: "geolocation"});
w = await x;
w.onchange = e => {console.log("changged", e)}

  1. Go to MacOS's System Preferences for Location Services
  2. Disallow Firefox from using location services by unpicking the box

Actual results:

Nothing.

Expected results:

Changing the system level permission for Firefox should cause the event on "w" (PermissionStatus) to fire.

Component: Untriaged → DOM: Geolocation
Product: Firefox → Core
Version: Firefox 96 → unspecified
Keywords: parity-chrome

@johann, this might be a "os permissions-wide" issue. In MacOS at least, it might also impact things like revoking Camera, Microphone, etc. at the OS level. Any suggestion about how we might address this? (not a huge issue, but it does mean that the browser's permission store and the OS's permission store can get out of sync).

Flags: needinfo?(mail)

Yes, this is likely an issue for the entire browser, we've discussed the "new" MacOS permission model extensively in bug 1494172 and I guess whoever ends up working on that should look at fixing up the permissions API as well.

Component: DOM: Geolocation → Permission Manager
Flags: needinfo?(mail)
See Also: → 1494172

The severity field is not set for this bug.
:timhuang, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(tihuang)
Severity: -- → S3
Flags: needinfo?(tihuang)
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.