Index: lib/objectTabs.js |
=================================================================== |
--- a/lib/objectTabs.js |
+++ b/lib/objectTabs.js |
@@ -150,17 +150,17 @@ var objTabs = |
this.delayedShowParams = arguments; |
if (!this.initializing) |
{ |
this.initializing = true; |
// Load CSS asynchronously |
try { |
- let request = Cc["@mozilla.org/xmlextras/xmlhttprequest;1"].createInstance(Ci.nsIXMLHttpRequest); |
+ let request = new XMLHttpRequest(); |
request.mozBackgroundRequest = true; |
request.open("GET", "chrome://adblockplus/content/objtabs.css"); |
request.overrideMimeType("text/plain"); |
request.addEventListener("load", processCSSData.bind(this, request), false); |
request.send(null); |
} |
catch (e) |