Bug 1939468 - Ensure ScotchBonnet is enabled for searchRestoreDefault test. r=settings-reviewers,mossop

Differential Revision: https://phabricator.services.mozilla.com/D233072
This commit is contained in:
Dale Harvey
2025-01-02 11:37:28 +00:00
parent b571a4584e
commit 087af03706

View File

@@ -7,6 +7,13 @@ const { SearchTestUtils } = ChromeUtils.importESModule(
const { SearchUtils } = ChromeUtils.importESModule(
"resource://gre/modules/SearchUtils.sys.mjs"
);
add_setup(async function () {
await SpecialPowers.pushPrefEnv({
set: [["browser.urlbar.scotchBonnet.enableOverride", true]],
});
});
add_task(async function test_restore_functionality() {
// Ensure no engines are hidden to begin with.
for (let engine of await Services.search.getAppProvidedEngines()) {