navigator.geolocation.getCurrentPosition error callback not called when in responsive design mode
Categories
(Core :: DOM: Geolocation, defect, P3)
Tracking
()
People
(Reporter: raul.argente.trabajo, Unassigned)
References
Details
User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36
Steps to reproduce:
After show in multiples mobile device de confirmation for allow or deny get navigator.geolocation.getCurrentPosition, after deny, this function never throw error or ends.
In Firefox destktop is easy reproducible:
- Press F12,
- Switch to mobile mode (like iPhone 6/7/9)
- getCurrentPosition geolocation
- DENY
... no response is recibed
Actual results:
Never ends, not get error
Expected results:
After deny, error result is desired.
Updated•5 years ago
|
Confirmed on 66.0.3 OS X 10.4.4, when in responsive design mode, the geolocation error callback for DENY never gets called.
Do you think this might be an issue for Android?
Reporter | ||
Comment 3•5 years ago
|
||
Hi, this, this fails in Android.
Comment 4•5 years ago
|
||
(In reply to raul.argente.trabajo from comment #3)
Hi, this, this fails in Android.
Raul, do you share a link to a web page that demonstrates the problem in Firefox on Android?
I created a simple getCurrentPosition test page [1] and can't reproduce the problem in Firefox on Android. If I click the "getCurrentPosition" button and then location permission prompt's "Don't share" button, the getCurrentPosition's error callback is called, as expected, with the error message "User denied geolocation prompt".
But I can reproduce the problem with the same test page in Firefox on macOS desktop in responsive design mode.
Comment 6•4 years ago
|
||
I ran into this bug today and can confirm that it still affects Firefox 73 on Mac OS X.
Comment 7•4 years ago
|
||
Still around in Firefox Developer v75.0b12 (64-bit) 😢
Comment 8•4 years ago
|
||
Same symptoms in FF-74/MacOS 10.14.4. Wrote a function that calls the navigator.geolocation.getCurrentPosition() and passed in a callback. Everything works as expected an can see that it returns that LAT,LNG when viewing the page in default view, however when the same page is viewed in Responsive Design View (CMD+OPT+M) the call back function doesn't seem to be called. Added 2 console.log and can see that the original function is called but the callback console.log never fires.
I was also facing this issue in firefox developer edition v76(64bit), but it seems to be fixed in v78.0b1(64bit)
Updated•2 years ago
|
Description
•