зеркало из https://github.com/mozilla/gecko-dev.git
Bug 687332: Fix up geolocation. r=dougt
This commit is contained in:
Родитель
c9eb9b4cd7
Коммит
000b7433d3
|
@ -239,10 +239,10 @@ WifiGeoPositionProvider.prototype = {
|
|||
xhr.mozBackgroundRequest = true;
|
||||
xhr.open("GET", providerUrl, false);
|
||||
xhr.channel.loadFlags = Ci.nsIChannel.LOAD_ANONYMOUS;
|
||||
xhr.onerror = function(req) {
|
||||
xhr.addEventListener("error", function(req) {
|
||||
LOG("onerror: " + req);
|
||||
};
|
||||
xhr.onload = function (req) {
|
||||
}, false);
|
||||
xhr.addEventListener("load", function (req) {
|
||||
LOG("service returned: " + req.target.responseText);
|
||||
response = JSON.parse(req.target.responseText);
|
||||
/*
|
||||
|
@ -288,7 +288,7 @@ WifiGeoPositionProvider.prototype = {
|
|||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}, false);
|
||||
|
||||
LOG("************************************* ------>>>> sending.");
|
||||
xhr.send(null);
|
||||
|
|
Загрузка…
Ссылка в новой задаче