From 152b73585cf37a64b8022c8bd027587c9d9e511f Mon Sep 17 00:00:00 2001 From: girst Date: Fri, 20 Nov 2020 15:44:07 +0100 Subject: [PATCH] Enable Webextension experiments This is outside the scope of LegacyFox and will be reverted. Only barely tested. --- config.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config.js b/config.js index 210e7b7..8ef8eb3 100644 --- a/config.js +++ b/config.js @@ -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); } -- 2.39.3