OLD | NEW |
1 /* | 1 /* |
2 * This file is part of Adblock Plus <https://adblockplus.org/>, | 2 * This file is part of Adblock Plus <https://adblockplus.org/>, |
3 * Copyright (C) 2006-2016 Eyeo GmbH | 3 * Copyright (C) 2006-2016 Eyeo GmbH |
4 * | 4 * |
5 * Adblock Plus is free software: you can redistribute it and/or modify | 5 * Adblock Plus is free software: you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License version 3 as | 6 * it under the terms of the GNU General Public License version 3 as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
8 * | 8 * |
9 * Adblock Plus is distributed in the hope that it will be useful, | 9 * Adblock Plus is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 15 matching lines...) Expand all Loading... |
26 registerPublicAPI(); | 26 registerPublicAPI(); |
27 require("filterListener"); | 27 require("filterListener"); |
28 require("contentPolicy"); | 28 require("contentPolicy"); |
29 require("synchronizer"); | 29 require("synchronizer"); |
30 require("notification"); | 30 require("notification"); |
31 require("sync"); | 31 require("sync"); |
32 require("messageResponder"); | 32 require("messageResponder"); |
33 require("ui"); | 33 require("ui"); |
34 require("objectTabs"); | 34 require("objectTabs"); |
35 require("elemHideFF"); | 35 require("elemHideFF"); |
36 require("cssProperties"); | 36 require("elemHideEmulation"); |
37 | 37 |
38 function bootstrapChildProcesses() | 38 function bootstrapChildProcesses() |
39 { | 39 { |
40 let info = require("info"); | 40 let info = require("info"); |
41 | 41 |
42 let processScript = info.addonRoot + "lib/child/bootstrap.js?" + | 42 let processScript = info.addonRoot + "lib/child/bootstrap.js?" + |
43 Math.random() + "&info=" + encodeURIComponent(JSON.stringify(info)); | 43 Math.random() + "&info=" + encodeURIComponent(JSON.stringify(info)); |
44 let messageManager = Cc["@mozilla.org/parentprocessmessagemanager;1"] | 44 let messageManager = Cc["@mozilla.org/parentprocessmessagemanager;1"] |
45 .getService(Ci.nsIProcessScriptLoader) | 45 .getService(Ci.nsIProcessScriptLoader) |
46 .QueryInterface(Ci.nsIMessageBroadcaster); | 46 .QueryInterface(Ci.nsIMessageBroadcaster); |
(...skipping 28 matching lines...) Expand all Loading... |
75 | 75 |
76 let registrar = Components.manager.QueryInterface(Ci.nsIComponentRegistrar); | 76 let registrar = Components.manager.QueryInterface(Ci.nsIComponentRegistrar); |
77 registrar.registerFactory(classID, "Adblock Plus public API URL", contractID,
factory); | 77 registrar.registerFactory(classID, "Adblock Plus public API URL", contractID,
factory); |
78 | 78 |
79 onShutdown.add(function() | 79 onShutdown.add(function() |
80 { | 80 { |
81 registrar.unregisterFactory(classID, factory); | 81 registrar.unregisterFactory(classID, factory); |
82 Cu.unload(uri.spec); | 82 Cu.unload(uri.spec); |
83 }); | 83 }); |
84 } | 84 } |
OLD | NEW |