Bug 1795260 - Also clear the inNavbar pref so that following test keeps working.

MANUAL PUSH: Trivial orange fix CLOSED TREE
This commit is contained in:
Emilio Cobos Álvarez 2022-10-17 23:28:10 +02:00
parent b03241e966
commit ac512eac22

View File

@ -5,7 +5,10 @@
const WIDGET_ID = "search-container";
registerCleanupFunction(() => CustomizableUI.reset());
registerCleanupFunction(() => {
CustomizableUI.reset();
Services.prefs.clearUserPref("browser.search.widget.inNavBar");
});
add_task(async function test_syncPreferenceWithWidget() {
// Move the searchbar to the nav bar.