Bug 1836042: Disable xpc::IsInAutomation() in test_signed_langpack. r=extension-reviewers,robwu

Differential Revision: https://phabricator.services.mozilla.com/D179608
This commit is contained in:
Kris Maglione 2023-06-01 04:59:52 +00:00
Родитель cde3d4a8d2
Коммит d5653aa56a
1 изменённых файлов: 7 добавлений и 0 удалений

Просмотреть файл

@ -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) {