From 022cf6d431c587739752c9801937f98dd8b567e5 Mon Sep 17 00:00:00 2001 From: girst Date: Thu, 24 Sep 2020 14:03:38 +0200 Subject: [PATCH] don't prevent unsigned addon warning to not break some addons This broke installing some, but not all, addons. The reason is that some addons derive their addon-id from a certificate's CommonName in XPIInstall.jsm::loadManifest(aPackage, aLocation, aOldAddon) --- README | 2 ++ config.js | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README b/README index 7877dc0..8fcc300 100644 --- a/README +++ b/README @@ -8,6 +8,8 @@ Monkeypatching Firefox Quantum to run VimFx 2. Install VimFx from https://github.com/akhodakivskiy/VimFx/releases == Notes == + * set `xpinstall.signatures.required;false` to downgrade the error message + that unsigned addons were supposedly disabled in about:config to a warning. * Users of firefox-esr on debian need to use the following command: `make DESTDIR=/usr/lib/firefox-esr install` * BootstrapLoader.jsm, RDFDataSource.jsm, RDFManifestConverter.jsm from their diff --git a/config.js b/config.js index 2dd7dba..d009577 100644 --- a/config.js +++ b/config.js @@ -2,7 +2,6 @@ try { let Xdb = Cu.import('resource://gre/modules/addons/XPIDatabase.jsm', {}); Xdb.XPIDatabase.isDisabledLegacy = (addon) => false; - Xdb.XPIDatabase['SIGNED_TYPES'].clear(); Xdb.AddonSettings = { ...Object.fromEntries(Object.getOwnPropertyNames(Xdb.AddonSettings) .map(e => [e, Xdb.AddonSettings[e]])), -- 2.39.3