From 8b0e81357e00d8b0806db105b1afdd2d3ee98870 Mon Sep 17 00:00:00 2001 From: Mark Banner Date: Thu, 20 Feb 2020 14:05:22 +0000 Subject: [PATCH] Bug 1615629 - Fix browser_searchbar_context.js leaking a window when run in test-verify mode. r=daleharvey Differential Revision: https://phabricator.services.mozilla.com/D63088 --HG-- extra : moz-landing-system : lando --- .../components/search/test/browser/browser_searchbar_context.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/browser/components/search/test/browser/browser_searchbar_context.js b/browser/components/search/test/browser/browser_searchbar_context.js index d16276ffc208..18ae50c168ca 100644 --- a/browser/components/search/test/browser/browser_searchbar_context.js +++ b/browser/components/search/test/browser/browser_searchbar_context.js @@ -26,10 +26,10 @@ add_task(async function setup() { await Services.search.setDefault(engineDefault); registerCleanupFunction(async function() { - gCUITestUtils.removeSearchBar(); await Services.search.setDefault(originalEngine); await Services.search.removeEngine(engineDefault); await BrowserTestUtils.closeWindow(win); + gCUITestUtils.removeSearchBar(); }); });