Fix WindowsLocationProvider::Startup to not always initialize.
Categories
(Core :: DOM: Geolocation, defect)
Tracking
()
People
(Reporter: emilio, Assigned: emilio)
References
Details
Attachments
(2 files)
48 bytes,
text/x-phabricator-request
|
RyanVM
:
approval-mozilla-beta+
|
Details | Review |
48 bytes,
text/x-phabricator-request
|
RyanVM
:
approval-mozilla-beta+
|
Details | Review |
Assignee | ||
Comment 1•10 months ago
|
||
We can call Startup() on an already-running instance, and that would cause us
to not unregister notifications from a pre-existing ILocation instance,
which seems likely to cause things like bug 1766770.
Other location providers deal correctly with this.
Assignee | ||
Comment 2•10 months ago
|
||
The second call would fail and thus fall back to MLS, but only null out
mLocation (not unregister the existing listener), so Windows would think we're
still using the location permission forever.
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/16856951218b Make WindowsLocationProvider::Startup() deal correctly with already-initialized instances. r=gcp https://hg.mozilla.org/integration/autoland/rev/f4e4de791d7f Make WindowsLocationProvider::Watch() not try to watch for events if already watching. r=gcp
Assignee | ||
Comment 4•10 months ago
•
|
||
Comment on attachment 9277263 [details]
Bug 1770126 - Make WindowsLocationProvider::Watch() not try to watch for events if already watching. r=gcp
Beta/Release Uplift Approval Request
- User impact if declined: Windows location services remain active incorrectly. This could also explain / fix some crashes like bug 1704500.
- Is this code covered by automated tests?: No
- Has the fix been verified in Nightly?: No
- Needs manual test from QE?: Yes
- If yes, steps to reproduce: * On Windows 11, ensure Windows location services are on and that apps can access them.
- Go to Google maps and grant location permission. See how the Windows 11 taskbar shows the location icon.
- Close the tab.
- Location icon should go away.
- List of other uplifts needed: None
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): Pretty straight-forward patch (most of the code is added logging), Windows + Geolocation specific.
- String changes made/needed: none
- Is Android affected?: No
Assignee | ||
Updated•10 months ago
|
Comment 5•10 months ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/16856951218b
https://hg.mozilla.org/mozilla-central/rev/f4e4de791d7f
Updated•10 months ago
|
Comment 6•10 months ago
|
||
Comment on attachment 9277260 [details]
Bug 1770126 - Make WindowsLocationProvider::Startup() deal correctly with already-initialized instances. r=gcp
Approved for 101.0rc1.
Updated•10 months ago
|
Comment 7•10 months ago
|
||
bugherderuplift |
https://hg.mozilla.org/releases/mozilla-beta/rev/4f74020d0456
https://hg.mozilla.org/releases/mozilla-beta/rev/20dc1c9a679d
Comment 8•10 months ago
|
||
Verified that the Windows 11 taskbar location icon will disappear after closing the maps tab or after some seconds from which the location was achieved on the maps tab. Looked over 102.0a1 (2022-05-22) and 101.0b10 (treeherder build).
Description
•