From 54655696e65acc67ec73f01932fa2ddb1e236a78 Mon Sep 17 00:00:00 2001 From: girst Date: Sat, 18 Jan 2020 19:35:02 +0100 Subject: [PATCH] Fix addon installation for Firefox 74 regressed by: Bug 1524327 --- README | 2 +- config.js | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README b/README index 40d4c31..8f58709 100644 --- a/README +++ b/README @@ -20,4 +20,4 @@ trademark; you are not granted any right to distribute modified binary versions of the software containing the official branding. (C) 2018-2019 Mozilla, MPL v2 -(C) 2019 //gir.st/, MPL v2 +(C) 2019-2020 //gir.st/, MPL v2 diff --git a/config.js b/config.js index 98e6a6f..3fc8f1b 100644 --- a/config.js +++ b/config.js @@ -1,11 +1,14 @@ // keep this comment try { let Xdb = Cu.import('resource://gre/modules/addons/XPIDatabase.jsm', {}); + Xdb.XPIDatabase.isDisabledLegacy = (addon) => false; Xdb.XPIDatabase['SIGNED_TYPES'].clear(); Xdb.AddonSettings = { "REQUIRE_SIGNING": false, "LANGPACKS_REQUIRE_SIGNING": false, - "ALLOW_LEGACY_EXTENSIONS": true, + "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