Bug 1455868: Expect unsigned langpack install to fail on release builds. r?aswan
MozReview-Commit-ID: DpNa24d2T6U
--- a/toolkit/mozapps/extensions/test/xpcshell/test_signed_langpack.js
+++ b/toolkit/mozapps/extensions/test/xpcshell/test_signed_langpack.js
@@ -43,14 +43,19 @@ add_task(async function() {
let unsignedXPI = do_get_file("data/signing_checks/langpack_unsigned.xpi");
await installShouldFail(unsignedXPI);
// Even with the general xpi signing pref off, an unsigned langapck
// should not install.
Services.prefs.setBoolPref(PREF_SIGNATURES_GENERAL, false);
await installShouldFail(unsignedXPI);
- // But with the langpack signing pref off, unsigned langpack should isntall.
+ // But with the langpack signing pref off, unsigned langpack should
+ // install only on non-release builds.
Services.prefs.setBoolPref(PREF_SIGNATURES_LANGPACKS, false);
- await installShouldSucceed(unsignedXPI);
+ if (AppConstants.MOZ_REQUIRE_SIGNING) {
+ await installShouldFail(unsignedXPI);
+ } else {
+ await installShouldSucceed(unsignedXPI);
+ }
await promiseShutdownManager();
});