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

Side by Side Diff: lib/main.js

Issue 29346613: Issue 521 - Inject our stylesheet on per-site basis rather than globally (Closed)
Patch Set: Created June 17, 2016, 2:07 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« lib/child/elemHide.js ('K') | « lib/elemHideFF.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 14 matching lines...) Expand all
25 bootstrapChildProcesses(); 25 bootstrapChildProcesses();
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("elemHideStylesheet"); 35 require("elemHideFF");
36 require("cssProperties"); 36 require("cssProperties");
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)
(...skipping 29 matching lines...) Expand all
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 }
OLDNEW
« lib/child/elemHide.js ('K') | « lib/elemHideFF.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld