Index: lib/main.js |
=================================================================== |
--- a/lib/main.js |
+++ b/lib/main.js |
@@ -54,16 +54,17 @@ messageManager.loadFrameScript(frameScri |
onShutdown.add(() => { |
messageManager.removeDelayedFrameScript(frameScript); |
messageManager.QueryInterface(Ci.nsIMessageBroadcaster).broadcastAsyncMessage("ElemHideHelper:Shutdown"); |
}); |
// Load overlay asynchonously and start attaching to windows once done |
request = Cc["@mozilla.org/xmlextras/xmlhttprequest;1"].createInstance(Ci.nsIJSXMLHttpRequest); |
request.open("GET", "chrome://elemhidehelper/content/overlay.xul"); |
+request.channel.owner = Cc["@mozilla.org/systemprincipal;1"].getService(Ci.nsIPrincipal); |
request.addEventListener("load", function(event) |
{ |
if (onShutdown.done) |
return; |
let overlay = event.target.responseXML.documentElement; |
// Initialization done, we can start up now |