Backed out changeset cc42921d3f36 (bug 1121497)
authorCarsten "Tomcat" Book <cbook@mozilla.com>
Tue, 27 Jan 2015 09:16:54 +0100
changeset 239311 80b882dbd0ccf5c519cd0593d58f19bcd8f089e6
parent 239310 740907c7d4ca0de7713cbc4b639b21794236d1e6
child 239312 e28ef69841089b3a0498eec183ffdf68758ce23a
push id497
push usermleibovic@mozilla.com
push dateWed, 28 Jan 2015 16:43:37 +0000
bugs1121497
milestone38.0a1
backs outcc42921d3f3603b6983a6edd008296c8fbe8b1bd
Backed out changeset cc42921d3f36 (bug 1121497)
dom/system/mac/CoreLocationLocationProvider.mm
--- a/dom/system/mac/CoreLocationLocationProvider.mm
+++ b/dom/system/mac/CoreLocationLocationProvider.mm
@@ -206,18 +206,16 @@ CoreLocationLocationProvider::Startup()
     nsAutoPtr<CoreLocationObjects> clObjs(new CoreLocationObjects());
 
     nsresult rv = clObjs->Init(this);
     NS_ENSURE_SUCCESS(rv, rv);
 
     mCLObjects = clObjs.forget();
   }
 
-  // Must be stopped before starting or response (success or failure) is not guaranteed
-  [mCLObjects->mLocationManager stopUpdatingLocation];
   [mCLObjects->mLocationManager startUpdatingLocation];
   return NS_OK;
 }
 
 NS_IMETHODIMP
 CoreLocationLocationProvider::Watch(nsIGeolocationUpdate* aCallback)
 {
   if (mCallback) {