Index: lib/main.js |
=================================================================== |
--- a/lib/main.js |
+++ b/lib/main.js |
@@ -31,20 +31,19 @@ require("notification"); |
require("sync"); |
require("messageResponder"); |
require("ui"); |
require("objectTabs"); |
function bootstrapChildProcesses() |
{ |
let info = require("info"); |
- let {Utils} = require("utils"); |
- Utils.addChildMessageListener("AdblockPlus:GetInfo", () => info); |
- let processScript = info.addonRoot + "lib/child/bootstrap.js?" + Math.random(); |
+ let processScript = info.addonRoot + "lib/child/bootstrap.js?" + |
+ Math.random() + "&info=" + encodeURIComponent(JSON.stringify(info)); |
let messageManager = Cc["@mozilla.org/parentprocessmessagemanager;1"] |
.getService(Ci.nsIProcessScriptLoader) |
.QueryInterface(Ci.nsIMessageBroadcaster); |
messageManager.loadProcessScript(processScript, true); |
onShutdown.add(() => { |
messageManager.broadcastAsyncMessage("AdblockPlus:Shutdown", processScript); |
messageManager.removeDelayedProcessScript(processScript); |