Closed Bug 599591 Opened 16 years ago Closed 16 years ago

Geolocation provider not turned off when navigating away from site

Categories

(Core :: DOM: Geolocation, defect)

All
Android
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Tracking Status
fennec 2.0b1+ ---

People

(Reporter: mwu, Assigned: dougt)

References

Details

Attachments

(1 file, 2 obsolete files)

Going to a page that uses geolocation turns on geolocation, but leaving it doesn't turn it off. Might be Android only.
Can you check to see if the android geolocation provider is getting it's StopDevice called?
it isn't. i think in the content process we aren't setting a disconnect timer. patch soon.
Attached patch patch v.1 (obsolete) — — Splinter Review
mwu, can you try?
Assignee: nobody → doug.turner
(In reply to comment #3) > Created attachment 478559 [details] [diff] [review] > patch v.1 > > mwu, can you try? Tried it. Still not stopping.
Attached patch patch v.1 (obsolete) — — Splinter Review
Attachment #478559 - Attachment is obsolete: true
Attachment #478603 - Flags: review?(mwu)
Attachment #478603 - Attachment is obsolete: true
Attachment #478603 - Flags: review?(mwu)
Attached patch patch v.1 — — Splinter Review
Attachment #478604 - Flags: review?(josh)
Attachment #478604 - Flags: feedback?(mwu)
mwu, can you give this a go?
Comment on attachment 478604 [details] [diff] [review] patch v.1 Looks ok to me. Switching between geolocation and non-geolocation using sites seems to work fine.
Attachment #478604 - Flags: feedback?(mwu) → feedback+
Comment on attachment 478604 [details] [diff] [review] patch v.1 >-static PRBool sGeoIgnoreLocationFilter = PR_FALSE; >+static PRBool sGeoIgnoreLocationFilter = PR_TRUE; Unrelated change. >+ for (PRUint32 i = 0; i <mProviders.Count(); i++) { Space after < >+ obs->NotifyObservers(mProviders[i], >+ "geolocation-device-events", >+ NS_LITERAL_STRING("starting").get()); Line up the parameters with the first line. >+ obs->NotifyObservers(mProviders[i], >+ "geolocation-device-events", >+ NS_LITERAL_STRING("shutdown").get()); Same as above. >+ for (PRUint32 i = 0; i< mWatchingCallbacks.Length(); i++) Space before <, and brace the loop body. > mWatchingCallbacks[aWatchId]->MarkCleared(); >+ Crush all extraneous whitespace changes. Looks good. r=me
Attachment #478604 - Flags: review?(josh) → review+
Requesting blocking since this can cause unnecessary battery usage and we have a patch.
tracking-fennec: --- → ?
tracking-fennec: ? → 2.0b1+
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Backed out because this makes windows xpcshell assert and crash. http://hg.mozilla.org/mozilla-central/pushloghtml?changeset=b75b24a337b3
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
This patch added a new test case (test_geolocation_provider.js) which powers up the wifi scanning code. It looks like the code does have a bug in it on windows. Tests ftw! :)
push a possible fix to try...
the fix for the orange is in bug 600110.
Status: REOPENED → RESOLVED
Closed: 16 years ago → 16 years ago
Resolution: --- → FIXED
Depends on: 604158
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: