Bug 866913 - Reset high accuracy flag on StopDevice(). r=mvines
authorDoug Turner <doug.turner@gmail.com>
Mon, 29 Apr 2013 20:22:30 -0700
changeset 141256 03f3cbc57ba9c3067afdefcb17bcb0e90ca031aa
parent 141255 6117a8d5aebb14f27cdc1159096225b9b8564835
child 141257 d6b37fd04df4bb3b902b23ef41035aec6b486e4f
push id2579
push userakeybl@mozilla.com
push dateMon, 24 Jun 2013 18:52:47 +0000
treeherdermozilla-beta@b69b7de8a05a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmvines
bugs866913
milestone23.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 866913 - Reset high accuracy flag on StopDevice(). r=mvines
dom/src/geolocation/nsGeolocation.cpp
--- a/dom/src/geolocation/nsGeolocation.cpp
+++ b/dom/src/geolocation/nsGeolocation.cpp
@@ -944,16 +944,18 @@ nsGeolocationService::StopDevice()
   if (!obs) {
     return;
   }
 
   if (!mProvider) {
     return;
   }
 
+  mHigherAccuracy = false;
+
   mProvider->Shutdown();
   obs->NotifyObservers(mProvider,
                        "geolocation-device-events",
                        NS_LITERAL_STRING("shutdown").get());
 }
 
 nsRefPtr<nsGeolocationService> nsGeolocationService::sService;