Bug 706515 - Non-initialized variables in nsGeolocationProvider.js r=doug.turner
authorTobias Markus <tobbi.bugs@googlemail.com>
Thu, 01 Dec 2011 12:02:51 +0100
changeset 81067 42e43796e73ff391fdf98de02620060f16144100
parent 81066 aca0075d85cf9225dfc230118ab9951140fc05a7
child 81068 a05df19da5636a493f16cd4478411e9902e5cb5c
push id3713
push userjacek@codeweavers.com
push dateThu, 01 Dec 2011 11:04:31 +0000
treeherdermozilla-inbound@a05df19da563 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdoug.turner
bugs706515
milestone11.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 706515 - Non-initialized variables in nsGeolocationProvider.js r=doug.turner
dom/system/NetworkGeolocationProvider.js
--- a/dom/system/NetworkGeolocationProvider.js
+++ b/dom/system/NetworkGeolocationProvider.js
@@ -95,20 +95,20 @@ function WifiGeoPositionProvider() {
   try {
     gLoggingEnabled = Services.prefs.getBoolPref("geo.wifi.logging.enabled");
   } catch (e) {}
 
   try {
     gTestingEnabled = Services.prefs.getBoolPref("geo.wifi.testing");
   } catch (e) {}
 
-  wifiService = null;
-  timer = null;
-  hasSeenWiFi = false;
-  started = false;
+  this.wifiService = null;
+  this.timer = null;
+  this.hasSeenWiFi = false;
+  this.started = false;
 }
 
 WifiGeoPositionProvider.prototype = {
   classID:          Components.ID("{77DA64D3-7458-4920-9491-86CC9914F904}"),
   QueryInterface:   XPCOMUtils.generateQI([Ci.nsIGeolocationProvider,
                                            Ci.nsIWifiListener,
                                            Ci.nsITimerCallback]),
   startup:  function() {