Open Bug 1523545 Opened 5 years ago Updated 2 years ago

navigator.geolocation.getCurrentPosition error callback not called when in responsive design mode

Categories

(Core :: DOM: Geolocation, defect, P3)

67 Branch
Desktop
Unspecified
defect

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.

Component: General → Geolocation
Product: Firefox for Android → Core
Version: Firefox 67 → 67 Branch

Confirmed on 66.0.3 OS X 10.4.4, when in responsive design mode, the geolocation error callback for DENY never gets called.

Summary: navigator.geolocation.getCurrentPosition never ends → navigator.geolocation.getCurrentPosition error callback not called when in responsive design mode
Status: UNCONFIRMED → NEW
Ever confirmed: true
Hardware: Unspecified → Desktop

Do you think this might be an issue for Android?

Flags: needinfo?(cpeterson)

Hi, this, this fails in Android.

(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.

[1] https://jsfiddle.net/5sh9b6dj/2/

Flags: needinfo?(cpeterson)

P3 if this bug only affects responsive design mode.

Priority: -- → P3

I ran into this bug today and can confirm that it still affects Firefox 73 on Mac OS X.

See Also: → 1615952
See Also: → 1561041

Still around in Firefox Developer v75.0b12 (64-bit) 😢

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)

Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.