Bug 774580 - Send the Geolocation status to web content : followup to fix strict warning [r=fabrice]
authorFabrice Desré <fabrice@mozilla.com>
Thu, 26 Jul 2012 04:35:47 -0700
changeset 100564 5ff3558da89d9ec261e72fc030e7b4407291a16e
parent 100563 82b24fab8f1d5aaf9fde0776118966cb98049dd9
child 100565 72bd41f8ca6117a0d6d09fd47615bb1fedf04288
push id23185
push usermbrubeck@mozilla.com
push dateThu, 26 Jul 2012 20:58:28 +0000
treeherdermozilla-central@8a7ad0adcccf [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfabrice
bugs774580
milestone17.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 774580 - Send the Geolocation status to web content : followup to fix strict warning [r=fabrice]
b2g/chrome/content/shell.js
--- a/b2g/chrome/content/shell.js
+++ b/b2g/chrome/content/shell.js
@@ -609,17 +609,17 @@ Services.obs.addObserver(function Conten
     data: {
       type: handler.type,
       url: handler.url
     }
   });
 }, 'content-handler', false);
 
 (function geolocationStatusTracker() {
-  gGeolocationActiveCount = 0;
+  let gGeolocationActiveCount = 0;
 
   Services.obs.addObserver(function(aSubject, aTopic, aData) {
     let oldCount = gGeolocationActiveCount;
     if (aData == "starting") {
       gGeolocationActiveCount += 1;
     } else if (aData == "shutdown") {
       gGeolocationActiveCount -= 1;
     }