diff options
author | girst <girst@users.noreply.github.com> | 2020-10-01 22:59:50 +0200 |
---|---|---|
committer | girst <girst@users.noreply.github.com> | 2020-10-01 23:09:09 +0200 |
commit | 29dc0ab3a8f8bd6e781fb983cd076764480dce18 (patch) | |
tree | 1d06072b5c25a2f5daa6b43bdb093595aa775e12 /config.js | |
parent | 022cf6d431c587739752c9801937f98dd8b567e5 (diff) | |
download | legacywolf-29dc0ab3a8f8bd6e781fb983cd076764480dce18.tar.gz legacywolf-29dc0ab3a8f8bd6e781fb983cd076764480dce18.zip |
automatically disable signature requirement
Having signatures enforced causes a big red error message to appear
below unsigned extensions, telling the user the extension has been
disabled. This is not true, though; the extensions are still enabled.
Setting xpinstall.signatures.required;false downgrades this error to a
(yellow) warning.
Diffstat (limited to 'config.js')
-rw-r--r-- | config.js | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -18,6 +18,9 @@ try { const {AddonManager} = Cu.import('resource://gre/modules/AddonManager.jsm'); const {BootstrapLoader} = Cu.import('resource://legacy/BootstrapLoader.jsm'); AddonManager.addExternalExtensionLoader(BootstrapLoader); + + const {Services} = Cu.import('resource://gre/modules/Services.jsm'); + Services.prefs.setBoolPref('xpinstall.signatures.required', false); } catch(ex) { Components.utils.reportError(ex.message); } |