From a07332c458644f09e5c7537838430180d9e8826f Mon Sep 17 00:00:00 2001 From: Shane Caraveo Date: Wed, 16 Dec 2020 22:37:03 +0000 Subject: [PATCH] Bug 1678829 fix permafail due to pref change during render of about:preferences r=preferences-reviewers,ntim Differential Revision: https://phabricator.services.mozilla.com/D99948 --- .../tests/browser_search_subdialogs_within_preferences_1.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/browser/components/preferences/tests/browser_search_subdialogs_within_preferences_1.js b/browser/components/preferences/tests/browser_search_subdialogs_within_preferences_1.js index 510b75408775..f11583960c0c 100644 --- a/browser/components/preferences/tests/browser_search_subdialogs_within_preferences_1.js +++ b/browser/components/preferences/tests/browser_search_subdialogs_within_preferences_1.js @@ -13,8 +13,6 @@ add_task(async function() { * Test for searching for the "Set Home Page" subdialog. */ add_task(async function() { - await openPreferencesViaOpenPreferencesAPI("paneHome", { leaveOpen: true }); - // Set custom URL so bookmark button will be shown on the page (otherwise it is hidden) await SpecialPowers.pushPrefEnv({ set: [ @@ -23,6 +21,8 @@ add_task(async function() { ], }); + await openPreferencesViaOpenPreferencesAPI("paneHome", { leaveOpen: true }); + // Wait for Activity Stream to add its panels await BrowserTestUtils.waitForCondition(() => SpecialPowers.spawn(