Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

搜索 | 用户支持

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

Learn More

Firefox geolocation returns wrong coordinates

  • 5 个回答
  • 1 人有此问题
  • 20 次查看
  • 最后回复者为 cor-el

more options

I want to build a progressive web app. This app requires the user's GPS coordinates. In order to test this functionality cross-browser, I use w3schooll geolocation implementation. Link: https://www.w3schools.com/html/tryit.asp?filename=tryhtml5_geolocation

Compared to Chrome, Firefox sometimes returns the wrong coordinates. For example yesterday (13/03/2020) the coordinates were wrong all day. Today (14/03/2020) the coordinates are right. The coordinates are crucial for the success of the app. I use Firefox 74.0

I want to build a progressive web app. This app requires the user's GPS coordinates. In order to test this functionality cross-browser, I use w3schooll geolocation implementation. Link: https://www.w3schools.com/html/tryit.asp?filename=tryhtml5_geolocation Compared to Chrome, Firefox sometimes returns the wrong coordinates. For example yesterday (13/03/2020) the coordinates were wrong all day. Today (14/03/2020) the coordinates are right. The coordinates are crucial for the success of the app. I use Firefox 74.0

所有回复 (5)

more options

What do these websites say about your location?

http://whatismyipaddress.com/ Under the map, look for Location Not Accurate?

http://browserleaks.com/geo

https://whatismyipaddress.com/geolocation

https://html5demos.com/geo/

https://www.iplocation.net/find-ip-address

How to set your location manually in Firefox(Windows) https://support.mozilla.org/en-US/questions/1197142#answer-1115502

more options

Hi Sergiu, on Windows, Firefox usually determines your precise location by asking Windows for information on nearby wi-fi hotspots and sending that to a web service, usually Google's. So I can't think of a good reason for that feature to differ from Chrome for a day unless some link in that chain was broken: permission denied to obtain precise location; bad or obsolete information from Windows; or bad or obsolete information from the web service.

more options

FredMcD said

What do these websites say about your location? http://whatismyipaddress.com/ Under the map, look for Location Not Accurate? http://browserleaks.com/geo https://whatismyipaddress.com/geolocation https://html5demos.com/geo/ https://www.iplocation.net/find-ip-address How to set your location manually in Firefox(Windows) https://support.mozilla.org/en-US/questions/1197142#answer-1115502


I have used the suggested website to locate my position on the map but none of them got it right, all of them have different GSP coordinates. I live in London, by the way, as a reference. I suppose they use the IP to determine the location.

由Sergiu Mare于修改

more options

Did you check out the : Location Not Accurate? on the first link I posted?

more options

Those test website usually do a reverse DNS lookup or use online databases and may not be using GPS coordinates from you own device as this would require special permission for local access. For an online Geo location service the accuracy usually depends of whether they have your IP range in their database. Precise GPS within a few meters is normally used on mobile devices and not on desktop or laptop devices.