| Index: lib/downloader.js |
| =================================================================== |
| --- a/lib/downloader.js |
| +++ b/lib/downloader.js |
| @@ -213,20 +213,20 @@ Downloader.prototype = |
| let errorCallback = function errorCallback(error) |
| { |
| let channelStatus = -1; |
| try |
| { |
| channelStatus = request.channel.status; |
| } catch (e) {} |
| - let responseStatus = ""; |
| + let responseStatus = -1; |
| try |
| { |
| - responseStatus = request.channel.QueryInterface(Ci.nsIHttpChannel).responseStatus; |
| + responseStatus = request.status; |
|
Thomas Greiner
2013/07/31 12:34:45
You don't need a try/catch here anymore. You can s
Wladimir Palant
2013/07/31 13:31:26
I verified that the Mozilla implementation indeed
|
| } catch (e) {} |
| Cu.reportError("Adblock Plus: Downloading URL " + downloadable.url + " failed (" + error + ")\n" + |
| "Download address: " + downloadURL + "\n" + |
| "Channel status: " + channelStatus + "\n" + |
| "Server response: " + responseStatus); |
| if (this.onDownloadError) |