Bug 1384779 - Fix intermittent on browser_autocomplete_marked_detached_tab.js by ensuring popup closed before window detaching. r=lchang
authorRay Lin <ralin@mozilla.com>
Tue, 15 Aug 2017 14:44:48 +0800
changeset 647745 a917b05e1a23d169ef134868db369cd263c7f279
parent 647744 f478a5b88b8f7e7ef51478ef4f066a97129969f3
child 647746 a315cc6a25bb695567bd6970040dd6d4e628d9b7
push id74539
push userbmo:mkelly@mozilla.com
push dateWed, 16 Aug 2017 22:39:32 +0000
reviewerslchang
bugs1384779
milestone57.0a1
Bug 1384779 - Fix intermittent on browser_autocomplete_marked_detached_tab.js by ensuring popup closed before window detaching. r=lchang MozReview-Commit-ID: IxcBQCFuZ2e
browser/extensions/formautofill/test/browser/browser_autocomplete_marked_detached_tab.js
--- a/browser/extensions/formautofill/test/browser/browser_autocomplete_marked_detached_tab.js
+++ b/browser/extensions/formautofill/test/browser/browser_autocomplete_marked_detached_tab.js
@@ -22,16 +22,17 @@ add_task(async function setup_storage() 
 
 add_task(async function test_detach_tab_marked() {
   await BrowserTestUtils.withNewTab({gBrowser, url: URL}, async function(browser) {
     const {autoCompletePopup} = browser;
 
     // Check the page after the initial load
     await openPopupOn(browser, "#street-address");
     checkPopup(autoCompletePopup);
+    await closePopup(browser);
 
     // Detach the tab to a new window
     let newWin = gBrowser.replaceTabWithWindow(gBrowser.getTabForBrowser(browser));
     await TestUtils.topicObserved("browser-delayed-startup-finished", subject => {
       return subject == newWin;
     });
 
     info("tab was detached");