w3c / geolocation

W3C Geolocation API
https://www.w3.org/TR/geolocation/
81 stars 56 forks source link

Problem when granted temporal acces to geolocation in Firefox #117

Closed elC0mpa closed 2 years ago

elC0mpa commented 2 years ago

Hello, I am having some issues when working with geolocation in FireFox, First of all I whill show how this works in Chrome and after that I will show the problem in FireFox.

image After location is allowed in this website the button is enabled as shown in the next image.

image This is who it should works.

Now I will show you the problem. Next image shows initial state in firefox. image

As shown in the next image, the problem is that when location is allowed temporarily, the API doesn´t detect that user allowed it and as a consequence, the button remains inactive. image

I will show you the code I am using even though there is nothing special on it. image

Basically the point is that when you give location temporarily permissions, the onChange is never executed

Thanks in advance, I hope I could solve this problem.

reillyeon commented 2 years ago

This seems like a bug in Firefox, though I think it is also an area where the behavior for temporarily granted permissions could be specified more precisely in the Permissions API. Not firing a change event at all is definitely a bug.

Firefox's issue tracker is https://bugzilla.mozilla.org/.

CC @marcoscaceres for visibility into the potential area for clarification in the Permissions API.

elC0mpa commented 2 years ago

Thanks @reillyeon, so I need to open a bug in Mozillam is this ok?

reillyeon commented 2 years ago

Yes, please file a bug with the Mozilla team.

Cyver0 commented 2 years ago

Seems not to be fixed yet. I was also not able to find it on https://bugzilla.mozilla.org/. But maybe i am just blind.