Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interaction between browser and system permissions #332

Open
marcoscaceres opened this issue Nov 23, 2021 · 4 comments
Open

Interaction between browser and system permissions #332

marcoscaceres opened this issue Nov 23, 2021 · 4 comments
Assignees
Labels
privacy-tracker Group bringing to attention of Privacy, or tracked by the Privacy Group but not needing response.

Comments

@marcoscaceres
Copy link
Member

At w3c/geolocation#107 (comment), @reillyeon suggested:

a note in the Permissions spec about how per-site and system-level permissions should stack would be helpful across this [Geolocation] and other permissions which face similar issues.

@reillyeon
Copy link
Member

The specific question from that issue which should be decided at the Permissions API level is how per-site and system-level permissions interact when calling navigator.permissions.query(). In w3c/geolocation#107 @marcoscaceres clarified how the Geolocation API should behave when system-level permission is denied but it is still unspecified how the Permissions API should behave. The two options seem to be,

  1. Be consistent between the API providing the powerful feature and the Permissions API and return "denied" when the system-level permission is denied regardless of the per-site state.
  2. Only reflect the per-site state in the Permissions API. Explicitly support sites using this inconsistency as a way to detect a situation in which system-level permission has not been granted.

@marcoscaceres
Copy link
Member Author

Related Gecko bug/discussion: https://bugzilla.mozilla.org/show_bug.cgi?id=1494172 (may help further inform the discussion)

@reillyeon
Copy link
Member

Discussed at TPAC 2024. I will put up a PR with some text based on what the room seemed to agree with.

@npdoty
Copy link

npdoty commented Sep 26, 2024

If we stopped relying on query() (which I still think is often harmful), when a site actually tried to use a camera or geolocation permission and the browser allowed it but the OS didn't, that might be a time that the browser could remind the user of their inconsistent state and explain the problem 'you wanted to use your camera with this site, but the browser doesn't have permission to use the camera'.

@npdoty npdoty added the privacy-tracker Group bringing to attention of Privacy, or tracked by the Privacy Group but not needing response. label Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
privacy-tracker Group bringing to attention of Privacy, or tracked by the Privacy Group but not needing response.
Projects
None yet
Development

No branches or pull requests

3 participants