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)
Tracking
()
RESOLVED
FIXED
| Tracking | Status | |
|---|---|---|
| fennec | 2.0b1+ | --- |
People
(Reporter: mwu, Assigned: dougt)
References
Details
Attachments
(1 file, 2 obsolete files)
|
7.49 KB,
patch
|
jdm
:
review+
mwu
:
feedback+
|
Details | Diff | Splinter Review |
Going to a page that uses geolocation turns on geolocation, but leaving it doesn't turn it off. Might be Android only.
| Assignee | ||
Comment 1•16 years ago
|
||
Can you check to see if the android geolocation provider is getting it's StopDevice called?
| Assignee | ||
Comment 2•16 years ago
|
||
it isn't.
i think in the content process we aren't setting a disconnect timer. patch soon.
| Reporter | ||
Comment 4•16 years ago
|
||
(In reply to comment #3)
> Created attachment 478559 [details] [diff] [review]
> patch v.1
>
> mwu, can you try?
Tried it. Still not stopping.
| Assignee | ||
Comment 5•16 years ago
|
||
Attachment #478559 -
Attachment is obsolete: true
Attachment #478603 -
Flags: review?(mwu)
| Assignee | ||
Updated•16 years ago
|
Attachment #478603 -
Attachment is obsolete: true
Attachment #478603 -
Flags: review?(mwu)
| Assignee | ||
Comment 6•16 years ago
|
||
Attachment #478604 -
Flags: review?(josh)
Attachment #478604 -
Flags: feedback?(mwu)
| Assignee | ||
Comment 7•16 years ago
|
||
mwu, can you give this a go?
| Reporter | ||
Comment 8•16 years ago
|
||
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 9•16 years ago
|
||
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+
| Reporter | ||
Comment 10•16 years ago
|
||
Requesting blocking since this can cause unnecessary battery usage and we have a patch.
tracking-fennec: --- → ?
Updated•16 years ago
|
tracking-fennec: ? → 2.0b1+
| Assignee | ||
Comment 11•16 years ago
|
||
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 → ---
| Assignee | ||
Comment 13•16 years ago
|
||
| Assignee | ||
Comment 14•16 years ago
|
||
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! :)
| Assignee | ||
Comment 15•16 years ago
|
||
push a possible fix to try...
| Assignee | ||
Comment 16•16 years ago
|
||
the fix for the orange is in bug 600110.
| Assignee | ||
Comment 17•16 years ago
|
||
Status: REOPENED → RESOLVED
Closed: 16 years ago → 16 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•