Bug 489228 - implements nsIWifiListener::onError in geolocation network provider. r/sr=jst
authorDoug Turner <dougt@meer.net>
Mon, 20 Apr 2009 20:36:43 -0700
changeset 27561 6f8a29abe2bf1074932e2768cfad2ecf4d415ecd
parent 27560 176afb7235f8d8676cd6f0f7da8b7293dcc7f297
child 27562 647a8e601187b91e5b25cb617a025d8619e50c49
push id6615
push userdougt@mozilla.com
push dateTue, 21 Apr 2009 03:37:08 +0000
treeherdermozilla-central@6f8a29abe2bf [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs489228
milestone1.9.2a1pre
Bug 489228 - implements nsIWifiListener::onError in geolocation network provider. r/sr=jst
dom/src/geolocation/NetworkGeolocationProvider.js
--- a/dom/src/geolocation/NetworkGeolocationProvider.js
+++ b/dom/src/geolocation/NetworkGeolocationProvider.js
@@ -237,16 +237,20 @@ WifiGeoPositionProvider.prototype = {
         }
 
         var jsonString = JSON.stringify(request);
         LOG("client sending: " + jsonString);
 
         xhr.send(jsonString);
     },
 
+    onError: function (code) {
+        LOG("wifi error: " + code);
+    },
+
     notify: function (timer) {
         if (this.hasSeenWiFi == false)
             this.onChange(null);
         this.timer = null;
     },
 
 };