为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Geolocation "Share Location" popup looping

  • 2 个回答
  • 1 人有此问题
  • 4 次查看
  • 最后回复者为 Krammig

more options

I have implemented Google Place Autocomplete Address API into a webpage however whenever I click on the Address input field, a FF browser message pops up asking "Would you like to share your location with this site"

If I click "Share Location" or "Not Now", it just re-displays, again and again.

Selecting Never or Always does accept and we can move on. (image below)

The thing is it works just fine in Localhost. However not on the server. The Google api Key is correct, and I have tried with a domain and without a domain being specified.

I have also tried just copying the sample code as is into a page and running that but the same issue appears ;

https://developers.google.com/maps/documentation/javascript/examples/places-autocomplete-addressform

Same deal, works on Localhost, works on the google site as the demo, does not work on my Windows server. Tried two different domains with the same result.

I don't recall this being an issue in the past ?

Windows Server 2012, ASP

Appreciate any help.

I have implemented Google Place Autocomplete Address API into a webpage however whenever I click on the Address input field, a FF browser message pops up asking "Would you like to share your location with this site" If I click "Share Location" or "Not Now", it just re-displays, again and again. Selecting Never or Always does accept and we can move on. (image below) The thing is it works just fine in Localhost. However not on the server. The Google api Key is correct, and I have tried with a domain and without a domain being specified. I have also tried just copying the sample code as is into a page and running that but the same issue appears ; https://developers.google.com/maps/documentation/javascript/examples/places-autocomplete-addressform Same deal, works on Localhost, works on the google site as the demo, does not work on my Windows server. Tried two different domains with the same result. I don't recall this being an issue in the past ? Windows Server 2012, ASP Appreciate any help.
已附加屏幕截图

所有回复 (2)

more options

I think that it is expected. However I am having the opposite problem in beta. The jsfiddle is running into the security block, which is not your problem, but a warning if you are using it in an iframe.

I eventually got it to work in the beta version of Firefox and it only asked me once. The permissions of the page are to always ask for geolocation. And I have tracking protection on. How do I turn on the Do Not Track feature?

Try clearing the cache and check your Firefox default geolocation settings. Make sure it also happens in Safe Mode and if so, file a bug.

more options

Thanks for the reply.

It would seem to me that in the Google javascript for autoaddress is sits in that code until the user selects an address, so more or less the code is a loop within itself.

As such when selecting Not Now in the browser, that Not Now is only for that Cycle, instead of that Session. Therefore as I see it, it is a bug in Firefox (or at least an oversight)

If selecting Not Now, that flag should stay current for the whole session of that browser tab, not just skip over that cycle and then reset.

How do I submit a bug ?

thanks

由Krammig于修改