Bug 576037 - NetworkGeolocationProvider protocol=1 decode busted
authorDoug Turner <dougt@dougt.org>
Thu, 01 Jul 2010 02:16:48 -0700
changeset 46966 82edf5bd1abe0cf6bc31fbd878f8780e9f0f3159
parent 46965 ffedf425577226f09d64e7fc7a4ddf0270bdb1e2
child 46967 e5a3822abe5aaeac6cc277407d788f440afaa96c
push id14212
push userdougt@mozilla.com
push dateThu, 01 Jul 2010 09:17:08 +0000
treeherdermozilla-central@82edf5bd1abe [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs576037
milestone2.0b2pre
first release with
nightly linux32
82edf5bd1abe / 4.0b2pre / 20100701030511 / files
nightly linux64
82edf5bd1abe / 4.0b2pre / 20100701031501 / files
nightly mac
82edf5bd1abe / 4.0b2pre / 20100701030900 / files
nightly win32
82edf5bd1abe / 4.0b2pre / 20100701040652 / files
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
releases
nightly linux32
nightly linux64
nightly mac
nightly win32
Bug 576037 - NetworkGeolocationProvider protocol=1 decode busted
dom/src/geolocation/NetworkGeolocationProvider.js
old mode 100755
new mode 100644
--- a/dom/src/geolocation/NetworkGeolocationProvider.js
+++ b/dom/src/geolocation/NetworkGeolocationProvider.js
@@ -346,17 +346,17 @@ WifiGeoPositionProvider.prototype = {
         };
 
         xhr.onload = function (req) {  
 
             LOG("xhr onload...");
 
             // if we get a bad response, we will throw and never report a location
             var response;
-            switch (this.protocol) {
+            switch (protocol) {
                 case 1:
                     LOG("service returned: " + req.target.responseXML);
                     response = HELD.decode(req.target.responseXML);
                     break;
                 case 0:
                 default:
                     LOG("service returned: " + req.target.responseText);
                     response = JSON.parse(req.target.responseText);