Closed Bug 1266494 Opened 9 years ago Closed 9 years ago

Limit navigator.geolocation.watchPosition() to secure contexts

Categories

(Core :: DOM: Geolocation, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1072859

People

(Reporter: rbarnes, Unassigned)

References

Details

(Keywords: site-compat, Whiteboard: btpp-fixlater)

This is clearly a powerful feature, so it's a natural candidate for restriction. Chromium is restricting all of navigator.geolocation as of 50: https://codereview.chromium.org/1530403002/ Our telemetry shows that only ~0.1% of the usage of watchPosition() is in non-secure contexts. http://mzl.la/1VEBbZq That's low enough that we should go ahead and turn it off.
Depends on: 1177957
Whiteboard: btpp-fixlater
Is there any reason why we cannot limit getCurrentPosition() as well like Chromium? If not, this is a dup of Bug 1072859.
getCurrentPosition() should also be limited.
Marking as DUP of #1072859: watchPositiong() and getCurrentPosition() should both be limited to secure contexts.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.