navigator.geolocation.getCurrentPosition returns invalid locations for some IPs

UNCONFIRMED
Unassigned

Status

()

Core
Geolocation
UNCONFIRMED
a year ago
a year ago

People

(Reporter: Stefan Matei, Unassigned)

Tracking

54 Branch
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

a year ago
Created attachment 8883911 [details]
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)?
You need to log in before you can comment on or make changes to this bug.