Closed Bug 978798 Opened 11 years ago Closed 10 years ago

Geolocation is not working on Firefox Desktop

Categories

(Core :: DOM: Geolocation, defect)

27 Branch
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: mounir, Unassigned)

References

Details

Using Ubuntu LTS 12.04 via the example page from [1], which is [2]. But also using maps.google.com. The API start looking for the position but never returns anything. The doorhanger shows up but that's it. [1] https://developer.mozilla.org/en-US/docs/WebAPI/Using_geolocation [2] https://thedotproduct.org/experiments/geo/
How, this was tested on a Mac too.
The ubuntu one is known (bug 919153); the releases lack a google API key, and there are issues filed on launchpad about it.
See Also: → 979940
This is expected behavior. Unless you explicitly specify a timeout option in the PositionOptions, the default value of 2^32 will be used. So if the position cannot be determined, you don't get an error callback unless that timeout expires, which is practically never. The internal implementation might re-try to get a position fix forever. Practically you always want to specify a timeout that makes sense for you use-case, possibly something like 5 to 10 seconds.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.