Closed Bug 1378745 Opened 7 years ago Closed 5 years ago

navigator.geolocation.getCurrentPosition returns invalid locations for some IPs

Categories

(Core :: DOM: Geolocation, defect)

54 Branch
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: smatei, Unassigned)

Details

Attachments

(1 file)

Attached image location.jpg
User Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0
Build ID: 20170628075643

Steps to reproduce:

1. Two IPs from the same provider (see ripe information from the attached picture). 
2. Setup squid proxy on both IPs and set proxy in Firefox.
3. Open https://developers.google.com/maps/documentation/javascript/geolocation example that calls method navigator.geolocation.getCurrentPosition. When asked by the application to allow access to location press "Allow"


Actual results:

Returned locations were different. One was UK (correct) one was India (incorrect). 


Expected results:

Ripe uses Maxmind and returns the correct location in both cases.

What location provider does Mozilla use? How do they update the IP to location database. Can this be updated (by API) in case some records are inaccurate (like in this case)?

It uses the native provider on windows.

Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: