Closed Bug 625415 Opened 15 years ago Closed 15 years ago

Position is lost after a few seconds

Categories

(Core :: DOM: Geolocation, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED
Tracking Status
blocking2.0 --- final+

People

(Reporter: u279076, Assigned: dougt)

References

Details

(Keywords: regression, Whiteboard: [4b9][hardblocker])

Attachments

(1 file)

Test Case: https://litmus.mozilla.org/show_test.cgi?id=12056 Test Page: http://hg.mozilla.org/qa/litmus-data/raw-file/tip/firefox/geolocation/position.html The test page above is used in the test case above to check that we can share the location. It just simply prints out the tester's coordinates once a location is shared. However, there seems to be a regression because the location is lost after a few seconds. Some preliminary regression testing indicates the last time this worked correctly was in Firefox 4.0b6.
Whiteboard: [4b9]
Version: unspecified → Trunk
This regressed between 20100831 and 20100901.
I suspect something here caused the regression: http://hg.mozilla.org/mozilla-central/rev/0d8d6369655d
The reason this occurs is due to the SetTimeoutTimer() call that was added at the bottom of nsGeolocationRequest::SendLocation. Doug, what's the rationale behind that? I'm having trouble coming up with why we want a timer to fire after we've already sent the location.
blocking2.0: --- → ?
Blocks: 489813
No longer blocks: 436265
oic. that SetTimeooutTimer should only be called if the request was created by a WatchPosition call.
Josh, Doug does this need to block. Can we make a call so we can get it out of the nomination queue. Who would work on it?
Attached patch patch v.1Splinter Review
something like this...
Assignee: nobody → doug.turner
Attachment #506903 - Flags: review?(josh)
Comment on attachment 506903 [details] [diff] [review] patch v.1 Darn, I had this same patch sitting in my queue two weeks ago, and I thought I put it up here. r=me as long as you get rid of the default parameter; I don't see any need for that.
Attachment #506903 - Flags: review?(josh) → review+
Attachment #506903 - Flags: approval2.0?
Attachment #506903 - Flags: approval2.0? → approval2.0+
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
blocking2.0: ? → final+
Whiteboard: [4b9] → [4b9][hardblocker]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: