summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgirst <girst@users.noreply.github.com>2020-09-24 14:03:38 +0200
committergirst <girst@users.noreply.github.com>2020-09-24 17:18:29 +0200
commit022cf6d431c587739752c9801937f98dd8b567e5 (patch)
tree3c7af7efcad4a3708367f2373542468d30f4d8e2
parent0d457a3fb04837f1b51e83f04b5b8a9b2b742904 (diff)
downloadlegacywolf-022cf6d431c587739752c9801937f98dd8b567e5.tar.gz
legacywolf-022cf6d431c587739752c9801937f98dd8b567e5.zip
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)
-rw-r--r--README2
-rw-r--r--config.js1
2 files changed, 2 insertions, 1 deletions
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]])),