зеркало из https://github.com/mozilla/pjs.git
Bug 584340 - nsIXMLHttpRequest.statusText in Blocklist.prototype.onXMLError
r=robstrong a=beltzner
This commit is contained in:
Родитель
c73afe525f
Коммит
036a2f777e
|
@ -559,10 +559,14 @@ Blocklist.prototype = {
|
|||
request = aEvent.target.channel.QueryInterface(Ci.nsIRequest);
|
||||
status = request.status;
|
||||
}
|
||||
var statusText = request.statusText;
|
||||
var statusText = "nsIXMLHttpRequest channel unavailable";
|
||||
// When status is 0 we don't have a valid channel.
|
||||
if (status == 0)
|
||||
statusText = "nsIXMLHttpRequest channel unavailable";
|
||||
if (status != 0) {
|
||||
try {
|
||||
statusText = request.statusText;
|
||||
} catch (e) {
|
||||
}
|
||||
}
|
||||
LOG("Blocklist:onError: There was an error loading the blocklist file\r\n" +
|
||||
statusText);
|
||||
},
|
||||
|
|
Загрузка…
Ссылка в новой задаче