]> git.gir.st - LegacyFox.git/blob - config.js
Revert "Enable Webextension experiments"
[LegacyFox.git] / config.js
1 // keep this comment
2 try {
3 let Xdb = Cu.import('resource://gre/modules/addons/XPIDatabase.jsm', {});
4 Xdb.XPIDatabase.isDisabledLegacy = (addon) => false;
5 Xdb.AddonSettings = {
6 ...Object.fromEntries(Object.getOwnPropertyNames(Xdb.AddonSettings)
7 .map(e => [e, Xdb.AddonSettings[e]])),
8 "REQUIRE_SIGNING": false,
9 "LANGPACKS_REQUIRE_SIGNING": false,
10 "ALLOW_LEGACY_EXTENSIONS": true, // <=fx73
11 "EXPERIMENTS_ENABLED": true, // >=fx74
12 };
13
14 const {FileUtils} = Cu.import('resource://gre/modules/FileUtils.jsm');
15 Components.manager.QueryInterface(Ci.nsIComponentRegistrar)
16 .autoRegister(FileUtils.getFile('GreD', ['legacy.manifest']));
17
18 const {AddonManager} = Cu.import('resource://gre/modules/AddonManager.jsm');
19 const {BootstrapLoader} = Cu.import('resource://legacy/BootstrapLoader.jsm');
20 AddonManager.addExternalExtensionLoader(BootstrapLoader);
21
22 const {Services} = Cu.import('resource://gre/modules/Services.jsm');
23 Services.prefs.setBoolPref('xpinstall.signatures.required', false);
24 } catch(ex) {
25 Components.utils.reportError(ex.message);
26 }
Imprint / Impressum