зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1454141 Require language packs to be signed
MozReview-Commit-ID: 5yDmkb6GJht --HG-- extra : rebase_source : 9220d629ecabf9ae8f58845f242f5a8a3cecfecb
This commit is contained in:
Родитель
7559921ade
Коммит
5936ccc549
|
@ -84,6 +84,7 @@ pref("extensions.webextensions.remote", true);
|
|||
pref("extensions.legacy.exceptions", "{972ce4c6-7e08-4474-a285-3208198ce6fd},testpilot@cliqz.com,@testpilot-containers,jid1-NeEaf3sAHdKHPA@jetpack,@activity-streams,pulse@mozilla.com,@testpilot-addon,@min-vid,tabcentertest1@mozilla.com,snoozetabs@mozilla.com,speaktome@mozilla.com,hoverpad@mozilla.com");
|
||||
|
||||
// Require signed add-ons by default
|
||||
pref("extensions.langpacks.signatures.required", true);
|
||||
pref("xpinstall.signatures.required", true);
|
||||
pref("xpinstall.signatures.devInfoURL", "https://wiki.mozilla.org/Addons/Extension_Signing");
|
||||
|
||||
|
|
|
@ -187,6 +187,7 @@ pref("xpinstall.whitelist.directRequest", false);
|
|||
pref("xpinstall.whitelist.fileRequest", false);
|
||||
pref("xpinstall.whitelist.add", "https://addons.mozilla.org,https://testpilot.firefox.com");
|
||||
|
||||
pref("extensions.langpacks.signatures.required", true);
|
||||
pref("xpinstall.signatures.required", true);
|
||||
|
||||
pref("extensions.enabledScopes", 1);
|
||||
|
|
|
@ -30,14 +30,14 @@ makeConstant("ADDON_SIGNING", AppConstants.MOZ_ADDON_SIGNING);
|
|||
|
||||
if (AppConstants.MOZ_REQUIRE_SIGNING && !Cu.isInAutomation) {
|
||||
makeConstant("REQUIRE_SIGNING", true);
|
||||
makeConstant("LANGPACKS_REQUIRE_SIGNING", true);
|
||||
} else {
|
||||
XPCOMUtils.defineLazyPreferenceGetter(AddonSettings, "REQUIRE_SIGNING",
|
||||
PREF_SIGNATURES_REQUIRED, false);
|
||||
XPCOMUtils.defineLazyPreferenceGetter(AddonSettings, "LANGPACKS_REQUIRE_SIGNING",
|
||||
PREF_LANGPACK_SIGNATURES, false);
|
||||
}
|
||||
|
||||
XPCOMUtils.defineLazyPreferenceGetter(AddonSettings, "LANGPACKS_REQUIRE_SIGNING",
|
||||
PREF_LANGPACK_SIGNATURES, false);
|
||||
|
||||
if (AppConstants.MOZ_ALLOW_LEGACY_EXTENSIONS || Cu.isInAutomation) {
|
||||
XPCOMUtils.defineLazyPreferenceGetter(AddonSettings, "ALLOW_LEGACY_EXTENSIONS",
|
||||
PREF_ALLOW_LEGACY, true);
|
||||
|
|
Загрузка…
Ссылка в новой задаче