зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
cde3d4a8d2
Коммит
d5653aa56a
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче