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

Side by Side Diff: lib/main.js

Issue 29345667: Issue 4139 - Don't save element hiding filters on disk (Closed)
Patch Set: Rebased and updated dependency Created June 17, 2016, 12:10 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « lib/elemHideStylesheet.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("cssProperties"); 36 require("cssProperties");
36 37
37 function bootstrapChildProcesses() 38 function bootstrapChildProcesses()
38 { 39 {
39 let info = require("info"); 40 let info = require("info");
40 41
41 let processScript = info.addonRoot + "lib/child/bootstrap.js?" + 42 let processScript = info.addonRoot + "lib/child/bootstrap.js?" +
42 Math.random() + "&info=" + encodeURIComponent(JSON.stringify(info)); 43 Math.random() + "&info=" + encodeURIComponent(JSON.stringify(info));
43 let messageManager = Cc["@mozilla.org/parentprocessmessagemanager;1"] 44 let messageManager = Cc["@mozilla.org/parentprocessmessagemanager;1"]
44 .getService(Ci.nsIProcessScriptLoader) 45 .getService(Ci.nsIProcessScriptLoader)
(...skipping 29 matching lines...) Expand all
74 75
75 let registrar = Components.manager.QueryInterface(Ci.nsIComponentRegistrar); 76 let registrar = Components.manager.QueryInterface(Ci.nsIComponentRegistrar);
76 registrar.registerFactory(classID, "Adblock Plus public API URL", contractID, factory); 77 registrar.registerFactory(classID, "Adblock Plus public API URL", contractID, factory);
77 78
78 onShutdown.add(function() 79 onShutdown.add(function()
79 { 80 {
80 registrar.unregisterFactory(classID, factory); 81 registrar.unregisterFactory(classID, factory);
81 Cu.unload(uri.spec); 82 Cu.unload(uri.spec);
82 }); 83 });
83 } 84 }
OLDNEW
« no previous file with comments | « lib/elemHideStylesheet.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld