Closed
Bug 1121497
Opened 9 years ago
Closed 9 years ago
CoreLocation provider: non responsive until restarted
Categories
(Core :: DOM: Geolocation, defect)
Tracking
()
RESOLVED
FIXED
mozilla38
People
(Reporter: garvan, Assigned: garvan)
References
Details
Attachments
(1 file)
978 bytes,
patch
|
dougt
:
review+
|
Details | Diff | Splinter Review |
To repro this bug: Using the CL provider, reload a page with geolocation. You may or may not get a location. In most cases the neither the success or error callback is called. CLLocationManager starts and stops updating based on startUpdatingLocation and stopUpdatingLocation. By design/docs it will report a location after the first call to start, and is under no obligation to re-report a location until stopped and restarted. It is only guaranteed to report consecutive locations on an actual location change.
On CoreLocationLocationProvider::Startup(), previously only startUpdatingLocation was called, and consecutive calls to this (as Startup() is called on each page load where HTML 5 geoloc api is called) do nothing. Which would happen on page reloading. Calling stopUpdatingLocation first will trigger startUpdatingLocation to return a location or failure when it is called.
Attachment #8549353 -
Flags: review?(dougt)
Updated•9 years ago
|
Attachment #8549353 -
Flags: review?(dougt) → review+
Try green: https://treeherder.mozilla.org/#/jobs?repo=try&revision=50f3f704e0d3
Keywords: checkin-needed
Comment 3•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/cc42921d3f36
Keywords: checkin-needed
Comment 4•9 years ago
|
||
sorry had to back out this changes in https://treeherder.mozilla.org/#/jobs?repo=mozilla-inbound&revision=e28ef6984108 since one of this changes caused a bustage in OS X static analysis builds like: https://treeherder.mozilla.org/logviewer.html#?job_id=5955163&repo=mozilla-inbound
Flags: needinfo?(gkeeley)
Bug 1121265 was the problem patch, is fixed.
Flags: needinfo?(gkeeley)
Keywords: checkin-needed
Comment 6•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/c6bec2021c05
Keywords: checkin-needed
Comment 7•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/c6bec2021c05
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla38
You need to log in
before you can comment on or make changes to this bug.
Description
•