diff --git a/browser/base/content/test/urlbar/browser_urlbar_remove_match.js b/browser/base/content/test/urlbar/browser_urlbar_remove_match.js index ad75022075bf..e7a89e09feb1 100644 --- a/browser/base/content/test/urlbar/browser_urlbar_remove_match.js +++ b/browser/base/content/test/urlbar/browser_urlbar_remove_match.js @@ -25,4 +25,7 @@ add_task(async function test_remove_history() { await BrowserTestUtils.waitForCondition( () => !gURLBar.popup.richlistbox.children.some(c => !c.collapsed && c.getAttribute("ac-value") == TEST_URL), "Waiting for the result to disappear"); + + gURLBar.popup.hidePopup(); + await promisePopupHidden(gURLBar.popup); });