Closed Bug 2022043 Opened 8 months ago Closed 7 months ago

Permissions API for geolocation should reflect Windows OS location permission

Categories

(Toolkit :: Geolocation Provider, enhancement)

Desktop
Windows
enhancement

Tracking

()

RESOLVED FIXED
151 Branch
Tracking Status
firefox151 --- fixed

People

(Reporter: haik, Assigned: jjaschke)

References

(Blocks 1 open bug)

Details

Attachments

(1 external file)

On Windows, when Firefox access to the OS location is denied, the permissions API should reflect that instead of having our location system fall back to using GLS. This is the Windows version of bug 1529591.

Depends on: 2021892, 2021889

Only depends on permissions api.

No longer depends on: 2021889

When the OS-level geolocation permission changes on Windows, PermissionStatus
objects for geolocation now fire their "change" event. This is done by
monitoring the wifiControl AppCapability's AccessChanged event in the parent
process and broadcasting the new state to all content processes via IPC.

The monitor starts lazily on the first geolocation permission query and
shuts down on xpcom-shutdown. The permission state mapping matches
Geolocation::GetLocationOSPermission().

Assignee: nobody → jjaschke
Status: NEW → ASSIGNED
Pushed by jjaschke@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/6dc725ce279e https://hg.mozilla.org/integration/autoland/rev/67ee617f2e0c Fire PermissionStatus.onchange when Windows OS geolocation permission changes. r=saschanaz,win-reviewers,handyman,emilio
Status: ASSIGNED → RESOLVED
Closed: 7 months ago
Resolution: --- → FIXED
Target Milestone: --- → 151 Branch
QA Whiteboard: [qa-triage-done-c152/b151]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: