Bug 1261842 - Update browser_394759_behavior.js to account for initial browser being remote. r=mikedeboer

MozReview-Commit-ID: H1A4bzARkyf

--HG--
extra : rebase_source : 46ba0178e5856f5d0c567d1c71218c9db8394e56
extra : source : 970cbbb3a658336a8a70cfea01ba5a6afa3ae58b
This commit is contained in:
Mike Conley 2016-06-01 17:15:25 -04:00
parent 4cfba25655
commit a386a255c4

View File

@ -26,10 +26,9 @@ function testWindows(windowsToOpen, expectedResults) {
(winData.isPopup ? "all=no" : "all");
let url = "http://example.com/?window=" + windowsToOpen.length;
let openWindowPromise = BrowserTestUtils.waitForNewWindow();
let openWindowPromise = BrowserTestUtils.waitForNewWindow(true, url);
openDialog(getBrowserURL(), "", features, url);
let win = yield openWindowPromise;
yield BrowserTestUtils.browserLoaded(win.gBrowser.selectedBrowser);
yield BrowserTestUtils.closeWindow(win);
}