--- a/mozilla-bmo1464766.patch Tue Jun 12 22:12:00 2018 +0200
+++ b/mozilla-bmo1464766.patch Sat Jun 23 09:14:31 2018 +0200
@@ -3,7 +3,7 @@
# User Mike Hommey <mh+mozilla@glandium.org>
# Date 1527491713 -32400
# Node ID c28becad0c10b906454d7e424f9a9402799ea8dd
-# Parent 182b06bb5c20188d320db4d14767e0e39366617a
+# Parent 86eaa6799cf51660c0b598937121305b8f70c84d
Bug 1464766 - Allow to relax the addon signature requirements. r?rhelmer
diff --git a/modules/libpref/init/all.js b/modules/libpref/init/all.js
@@ -19,7 +19,7 @@
pref("extensions.spellcheck.inline.max-misspellings", 500);
+// Add-on manager scoped allowing unsigned addons. None by default.
-+pref("extensions.unsignedScopes", 0, locked);
++pref("extensions.unsignedScopes", 12, locked);
+
// Prefs used by libeditor. Prefs specific to seamonkey composer
// belong in comm-central/editor/ui/composer.js
@@ -107,7 +107,7 @@
isUsableAddon(aAddon) {
- if (this.mustSign(aAddon.type) && !aAddon.isCorrectlySigned) {
+ let unsignedScopes = Services.prefs.getIntPref(PREF_EM_UNSIGNED_SCOPES, 0);
-+ if (!(aAddon.location.scope & unsignedScopes) &&
++ if (!(aAddon._installLocation.scope & unsignedScopes) &&
+ this.mustSign(aAddon.type) && !aAddon.isCorrectlySigned) {
logger.warn(`Add-on ${aAddon.id} is not correctly signed.`);
if (Services.prefs.getBoolPref(PREF_XPI_SIGNATURES_DEV_ROOT, false)) {