Geolocation is not working if don't ask again is left unmarked
Categories
(Core :: DOM: Geolocation, defect, P2)
Tracking
()
People
(Reporter: bsurd, Assigned: andrei.a.lazar)
References
Details
(Whiteboard: [bcs:p2])
Attachments
(4 files)
| Reporter | ||
Updated•8 years ago
|
Comment 1•8 years ago
|
||
Updated•8 years ago
|
Updated•8 years ago
|
Comment 2•8 years ago
|
||
Comment 6•7 years ago
|
||
| Assignee | ||
Updated•6 years ago
|
Chris: feel free to just clear the ni as I wanted to make sure you saw this one, your Fx Android expertise might be needed.
Updated•6 years ago
|
Comment 8•6 years ago
|
||
I can still reproduce this bug in Fennec and Fenix. Google Maps asks me to share my position 2-3 times before actually showing my position on the map. This might just be a web content problem and not a Gecko bug. I only get one permission prompt when testing geolocation on https://geolocation.com/ in Fennec and Fenix.
I can reproduce these multiple permission prompts on Firefox desktop, but only if I use DevTool's Responsive Design Mode with a Fennec User-agent string Mozilla/5.0 (Android 8.1.0; Tablet; rv:66.0) Gecko/66.0 Firefox/66.0. Since I can reproduce this bug on desktop, I'll move this bug to the "Core::DOM: Geolocation" Bugzilla component.
@ Andrei, can you please verify whether Google Maps is actually calling Gecko's navigator.geolocation.getCurrentPosition() or watchPosition() multiple times? If so, we can reach out to Google and ask them to just call it once.
My suspicion is that when the page checks that navigator.geolocation exists, this triggers a prompt.
AFAIK from working with google maps in the past, it doesn't make redundant extra calls to getCurrent or watch.
EDIT: I should add that is with the desktop version of google maps, it could be a different code path for the mobile version.
Comment 10•6 years ago
|
||
Now that 1371618 is verified, Andrei just tested again and shows this is also working as expected.
| Assignee | ||
Comment 11•6 years ago
|
||
| Assignee | ||
Comment 12•6 years ago
|
||
| Assignee | ||
Comment 13•6 years ago
|
||
| Assignee | ||
Comment 14•6 years ago
|
||
Updated•6 years ago
|
Description
•