navigator.geolocation.watchPosition seems to be calling both success and error handlers, constantly
Categories
(Core :: DOM: Geolocation, defect)
Tracking
()
People
(Reporter: github, Unassigned)
References
Details
Attachments
(1 file)
|
201 bytes,
text/html
|
Details |
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:100.0) Gecko/20100101 Firefox/100.0
Steps to reproduce:
navigator.geolocation.watchPosition(() => console.log('success'), () => console.log('failure'), {enableHighAccuracy: true, timeout: 5000, maximumAge: 600000})
Actual results:
'success' appears on the console, followed by numerous 'failure's (timeout) every 5000 millis
Expected results:
'success' should have appeared, of 'failure' (timeout), not both
Comment 1•3 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'DevTools::Console' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Updated•3 years ago
|
Comment 2•3 years ago
|
||
Updated•3 years ago
|
Updated•3 years ago
|
Comment 3•1 year ago
|
||
I can still repro this, after the initial success callback (by granting the permission from the popup) I constantly get both failure and success.
Description
•