搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

ERROR(1): User denied geolocation prompt

  • 10 回覆
  • 2 有這個問題
  • 50 次檢視
  • 最近回覆由 cor-el

more options

I have Firefox 65.

I've made a very simple Geolocation demo exactly like the example here: https://developer.mozilla.org/en-US/docs/Web/API/Geolocation/getCurrentPosition#Example

Here's the demo: https://demo.footstepsmarketing.com/locator.html

I can confirm that it does work in Firefox 63, but does not in 64 onwards. Any insight would be much appreciated.

I have Firefox 65. I've made a very simple Geolocation demo exactly like the example here: https://developer.mozilla.org/en-US/docs/Web/API/Geolocation/getCurrentPosition#Example Here's the demo: https://demo.footstepsmarketing.com/locator.html I can confirm that it does work in Firefox 63, but does not in 64 onwards. Any insight would be much appreciated.

所有回覆 (10)

more options

Works fine here in Firefox 65. Firefox asks for permission to use Geo Location when I open the page. If I allow then I see the report in the Web Console. If I deny then I see the error message you reported.

more options

Strange, I've tried from multiple IPs using a VPN and I get the same error. Good to know it works for some people, I've been concerned about client complaints. I'm wondering if it's an about:config setting. I should note I also get the same error in Safari, but not Chrome.

more options

The code is OK, but you have to go to Options -> Privacy & Security -> Pemissions -> Location -> Settings and add your site to exceptions or turn off Block new requests asking to access your location at the bottom of the window.

由 TyDraniu 於 修改

more options

TyDraniu, already done, no luck.

more options

blankride said

Strange, I've tried from multiple IPs using a VPN and I get the same error. I should note I also get the same error in Safari, but not Chrome.

Using VPN is also another reason geolocation doesn't work. And since there no option to confirm how your using Chrome with or without VPN to know if geolocation is working. Also using that link a confirmation popups to use your location and when it detects VPN that could also be part of the problem as well. Or if they click no then that would cause a fault and it would give a Access Denied to geolocation and thus it will block access.

由 WestEnd 於 修改

more options

What is the setting of this permissions pref on the about:config page?

  • permissions.default.geo = 0 (default)

You can open the about:config page via the location/address bar. You can accept the warning and click "I accept the risk!" to continue.

more options

WestEnd said

blankride said
Strange, I've tried from multiple IPs using a VPN and I get the same error. I should note I also get the same error in Safari, but not Chrome.

Using VPN is also another reason geolocation doesn't work. And since there no option to confirm how your using Chrome with or without VPN to know if geolocation is working. Also using that link a confirmation popups to use your location and when it detects VPN that could also be part of the problem as well. Or if they click no then that would cause a fault and it would give a Access Denied to geolocation and thus it will block access.

@WestEnd I've tried with and without a VPN from work and home, still the same result. It's not just a Firefox issue either, (Desktop) Safari has the same problem.

more options

cor-el said

What is the setting of this permissions pref on the about:config page?
  • permissions.default.geo = 0 (default)
You can open the about:config page via the location/address bar. You can accept the warning and click "I accept the risk!" to continue.

It is set to permissions.default.geo = 0. Changing it to 1 doesn't give me the prompt to "Allow Location Access", but still gives me the same "ERROR(1): User denied geolocation prompt"

more options

Ok I clicked on the link to permit and nothing shows up so what exactly is the problem from the software programmed says? That site, I click was just a white space page nothing showing. Even in Chrome the site you demo gave doesn't work so I think unless we can see the site your using that says is the problem this so far from the link shows it a site problem not a Browser issue. And Chrome is 72 version as well.

more options

The website shows the geo location info or the error message in the Web Console, so you won't notice any reaction apart from the dialog to ask permission for the location.