Index: lib/downloader.js |
=================================================================== |
--- a/lib/downloader.js |
+++ b/lib/downloader.js |
@@ -243,17 +243,17 @@ Downloader.prototype = |
} |
this.onDownloadError(downloadable, downloadURL, error, channelStatus, responseStatus, redirectCallback); |
} |
}.bind(this); |
try |
{ |
- request = Cc["@mozilla.org/xmlextras/xmlhttprequest;1"].createInstance(Ci.nsIXMLHttpRequest); |
+ request = new XMLHttpRequest(); |
request.mozBackgroundRequest = true; |
request.open("GET", downloadURL); |
} |
catch (e) |
{ |
errorCallback("synchronize_invalid_url"); |
return; |
} |