From 3aafe733dfaae7c4d4304f80d4df01780e989e80 Mon Sep 17 00:00:00 2001 From: girst Date: Sat, 22 Aug 2020 19:11:26 +0200 Subject: [PATCH] recreate all properties of AddonSettings automatically Looks like all the settings continued to work by accident. Note: out of scope for LegacyFox, but sideloading from anywhere can be re-enabled by setting `SCOPES_SIDELOAD: 31 // AddonManager.SCOPE_ALL`. --- config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config.js b/config.js index 3fc8f1b..2dd7dba 100644 --- a/config.js +++ b/config.js @@ -4,11 +4,12 @@ try { Xdb.XPIDatabase.isDisabledLegacy = (addon) => false; Xdb.XPIDatabase['SIGNED_TYPES'].clear(); Xdb.AddonSettings = { + ...Object.fromEntries(Object.getOwnPropertyNames(Xdb.AddonSettings) + .map(e => [e, Xdb.AddonSettings[e]])), "REQUIRE_SIGNING": false, "LANGPACKS_REQUIRE_SIGNING": false, "ALLOW_LEGACY_EXTENSIONS": true, // <=fx73 "EXPERIMENTS_ENABLED": true, // >=fx74 - "DEFAULT_THEME_ID": "default-theme@mozilla.org", }; const {FileUtils} = Cu.import('resource://gre/modules/FileUtils.jsm'); -- 2.39.3