diff options
author | girst <girst@users.noreply.github.com> | 2020-11-20 15:44:07 +0100 |
---|---|---|
committer | girst <girst@users.noreply.github.com> | 2020-11-20 15:44:07 +0100 |
commit | 152b73585cf37a64b8022c8bd027587c9d9e511f (patch) | |
tree | e30fd3c0732f47e81166e2f97edc4d91682f2286 | |
parent | 29dc0ab3a8f8bd6e781fb983cd076764480dce18 (diff) | |
download | legacywolf-152b73585cf37a64b8022c8bd027587c9d9e511f.tar.gz legacywolf-152b73585cf37a64b8022c8bd027587c9d9e511f.zip |
Enable Webextension experiments
This is outside the scope of LegacyFox and will be reverted. Only barely
tested.
-rw-r--r-- | config.js | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1,6 +1,7 @@ // keep this comment try { let Xdb = Cu.import('resource://gre/modules/addons/XPIDatabase.jsm', {}); + let Ext = Cu.import('resource://gre/modules/Extension.jsm', {}); Xdb.XPIDatabase.isDisabledLegacy = (addon) => false; Xdb.AddonSettings = { ...Object.fromEntries(Object.getOwnPropertyNames(Xdb.AddonSettings) @@ -10,6 +11,7 @@ try { "ALLOW_LEGACY_EXTENSIONS": true, // <=fx73 "EXPERIMENTS_ENABLED": true, // >=fx74 }; + Ext.AddonSettings = Xdb.AddonSettings; const {FileUtils} = Cu.import('resource://gre/modules/FileUtils.jsm'); Components.manager.QueryInterface(Ci.nsIComponentRegistrar) @@ -21,6 +23,7 @@ try { const {Services} = Cu.import('resource://gre/modules/Services.jsm'); Services.prefs.setBoolPref('xpinstall.signatures.required', false); + Services.prefs.setBoolPref('extensions.experiments.enabled', true); } catch(ex) { Components.utils.reportError(ex.message); } |