From 29dc0ab3a8f8bd6e781fb983cd076764480dce18 Mon Sep 17 00:00:00 2001 From: girst Date: Thu, 1 Oct 2020 22:59:50 +0200 Subject: 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. --- config.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'config.js') diff --git a/config.js b/config.js index d009577..210e7b7 100644 --- a/config.js +++ b/config.js @@ -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); } -- cgit v1.2.3