]> git.gir.st - LegacyFox.git/blob - config.js
provide easy way to find modifications to BootstrapLoader
[LegacyFox.git] / config.js
1 // keep this comment
2 try {
3 let {XPIDatabase} = ChromeUtils.importESModule('resource://gre/modules/addons/XPIDatabase.sys.mjs');
4 XPIDatabase.isDisabledLegacy = (addon) => false;
5 XPIDatabase.mustSign = (aType) => false;
6
7 let manifest = Services.dirsvc.get('GreD', Ci.nsIFile);
8 manifest.append('legacy.manifest');
9 Components.manager.QueryInterface(Ci.nsIComponentRegistrar).autoRegister(manifest);
10
11 const {AddonManager} = ChromeUtils.importESModule('resource://gre/modules/AddonManager.sys.mjs');
12 const {BootstrapLoader} = ChromeUtils.importESModule('resource://legacy/BootstrapLoader.sys.mjs');
13 AddonManager.addExternalExtensionLoader(BootstrapLoader);
14 } catch(ex) {
15 Components.utils.reportError(ex.message);
16 }
Imprint / Impressum