Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Delta Between Two Patch Sets: lib/main.js

Issue 29338638: Issue 2401 - Integrate CSS property rule handling in Firefox (Closed)
Left Patch Set: Created March 18, 2016, 3:05 p.m.
Right Patch Set: Addressed comments Created March 30, 2016, 6:41 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « lib/cssProperties.js ('k') | lib/whitelisting.js » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
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 21 matching lines...) Expand all
32 require("messageResponder"); 32 require("messageResponder");
33 require("ui"); 33 require("ui");
34 require("objectTabs"); 34 require("objectTabs");
35 require("cssProperties"); 35 require("cssProperties");
36 36
37 function bootstrapChildProcesses() 37 function bootstrapChildProcesses()
38 { 38 {
39 let info = require("info"); 39 let info = require("info");
40 40
41 let processScript = info.addonRoot + "lib/child/bootstrap.js?" + 41 let processScript = info.addonRoot + "lib/child/bootstrap.js?" +
42 Math.random() + "#" + encodeURIComponent(JSON.stringify(info)); 42 Math.random() + "&info=" + encodeURIComponent(JSON.stringify(info));
43 let messageManager = Cc["@mozilla.org/parentprocessmessagemanager;1"] 43 let messageManager = Cc["@mozilla.org/parentprocessmessagemanager;1"]
44 .getService(Ci.nsIProcessScriptLoader) 44 .getService(Ci.nsIProcessScriptLoader)
45 .QueryInterface(Ci.nsIMessageBroadcaster); 45 .QueryInterface(Ci.nsIMessageBroadcaster);
46 messageManager.loadProcessScript(processScript, true); 46 messageManager.loadProcessScript(processScript, true);
47 47
48 onShutdown.add(() => { 48 onShutdown.add(() => {
49 messageManager.broadcastAsyncMessage("AdblockPlus:Shutdown", processScript); 49 messageManager.broadcastAsyncMessage("AdblockPlus:Shutdown", processScript);
50 messageManager.removeDelayedProcessScript(processScript); 50 messageManager.removeDelayedProcessScript(processScript);
51 }); 51 });
52 } 52 }
(...skipping 21 matching lines...) Expand all
74 74
75 let registrar = Components.manager.QueryInterface(Ci.nsIComponentRegistrar); 75 let registrar = Components.manager.QueryInterface(Ci.nsIComponentRegistrar);
76 registrar.registerFactory(classID, "Adblock Plus public API URL", contractID, factory); 76 registrar.registerFactory(classID, "Adblock Plus public API URL", contractID, factory);
77 77
78 onShutdown.add(function() 78 onShutdown.add(function()
79 { 79 {
80 registrar.unregisterFactory(classID, factory); 80 registrar.unregisterFactory(classID, factory);
81 Cu.unload(uri.spec); 81 Cu.unload(uri.spec);
82 }); 82 });
83 } 83 }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld