OLD | NEW |
1 /* | 1 /* |
2 * This file is part of Adblock Plus <http://adblockplus.org/>, | 2 * This file is part of Adblock Plus <http://adblockplus.org/>, |
3 * Copyright (C) 2006-2013 Eyeo GmbH | 3 * Copyright (C) 2006-2013 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 19 matching lines...) Expand all Loading... |
30 require("filterListener"); | 30 require("filterListener"); |
31 TimeLine.log("Done loading filter listener"); | 31 TimeLine.log("Done loading filter listener"); |
32 require("contentPolicy"); | 32 require("contentPolicy"); |
33 TimeLine.log("Done loading content policy"); | 33 TimeLine.log("Done loading content policy"); |
34 require("synchronizer"); | 34 require("synchronizer"); |
35 TimeLine.log("Done loading subscription synchronizer"); | 35 TimeLine.log("Done loading subscription synchronizer"); |
36 require("sync"); | 36 require("sync"); |
37 TimeLine.log("Done loading sync support"); | 37 TimeLine.log("Done loading sync support"); |
38 require("ui"); | 38 require("ui"); |
39 TimeLine.log("Done loading UI integration code"); | 39 TimeLine.log("Done loading UI integration code"); |
40 require("typoBootstrap"); | |
41 TimeLine.log("Done loading typo correction"); | |
42 TimeLine.leave("Started up"); | 40 TimeLine.leave("Started up"); |
43 | 41 |
44 function registerPublicAPI() | 42 function registerPublicAPI() |
45 { | 43 { |
46 let {addonRoot} = require("info"); | 44 let {addonRoot} = require("info"); |
47 | 45 |
48 let uri = Services.io.newURI(addonRoot + "lib/Public.jsm", null, null); | 46 let uri = Services.io.newURI(addonRoot + "lib/Public.jsm", null, null); |
49 if (uri instanceof Ci.nsIMutable) | 47 if (uri instanceof Ci.nsIMutable) |
50 uri.mutable = false; | 48 uri.mutable = false; |
51 | 49 |
(...skipping 12 matching lines...) Expand all Loading... |
64 | 62 |
65 let registrar = Components.manager.QueryInterface(Ci.nsIComponentRegistrar); | 63 let registrar = Components.manager.QueryInterface(Ci.nsIComponentRegistrar); |
66 registrar.registerFactory(classID, "Adblock Plus public API URL", contractID,
factory); | 64 registrar.registerFactory(classID, "Adblock Plus public API URL", contractID,
factory); |
67 | 65 |
68 onShutdown.add(function() | 66 onShutdown.add(function() |
69 { | 67 { |
70 registrar.unregisterFactory(classID, factory); | 68 registrar.unregisterFactory(classID, factory); |
71 Cu.unload(uri.spec); | 69 Cu.unload(uri.spec); |
72 }); | 70 }); |
73 } | 71 } |
OLD | NEW |