Commit d5653aa5 authored by Kris Maglione's avatar Kris Maglione
Browse files

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

parent cde3d4a8
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
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) {