From d5653aa56a963266bc0e6f65ed24b146676e82d7 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Thu, 1 Jun 2023 04:59:52 +0000 Subject: [PATCH] Bug 1836042: Disable xpc::IsInAutomation() in test_signed_langpack. r=extension-reviewers,robwu Differential Revision: https://phabricator.services.mozilla.com/D179608 --- .../extensions/test/xpcshell/test_signed_langpack.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/toolkit/mozapps/extensions/test/xpcshell/test_signed_langpack.js b/toolkit/mozapps/extensions/test/xpcshell/test_signed_langpack.js index e78887cae26f..8ad83b2ecb24 100644 --- a/toolkit/mozapps/extensions/test/xpcshell/test_signed_langpack.js +++ b/toolkit/mozapps/extensions/test/xpcshell/test_signed_langpack.js @@ -1,6 +1,13 @@ const PREF_SIGNATURES_GENERAL = "xpinstall.signatures.required"; const PREF_SIGNATURES_LANGPACKS = "extensions.langpacks.signatures.required"; +// Disable "xpc::IsInAutomation()", since it would override the behavior +// we're testing for. +Services.prefs.setBoolPref( + "security.turn_off_all_security_so_that_viruses_can_take_over_this_computer", + false +); + // Try to install the given XPI file, and assert that the install // succeeds. Uninstalls before returning. async function installShouldSucceed(file) {