Bug 1423938 - Try to fix browser_bug537474 detecting about:blank loads in the selected tab. r=johannh, a=test-only
authorGijs Kruitbosch <gijskruitbosch@gmail.com>
Tue, 20 Mar 2018 22:46:49 +0000
changeset 462773 82c067be1c575ede5ebbe080a2a4505aa52b074f
parent 462772 6776c57cdbb9432346a9ebc125adfd7ba09fb1b3
child 462774 f38f39a9cd54cf4664a14e0ed23f5d3dd799fd18
push id1683
push usersfraser@mozilla.com
push dateThu, 26 Apr 2018 16:43:40 +0000
treeherdermozilla-release@5af6cb21869d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjohannh, test-only
bugs1423938, 537474
milestone60.0
Bug 1423938 - Try to fix browser_bug537474 detecting about:blank loads in the selected tab. r=johannh, a=test-only MozReview-Commit-ID: cLfN049EJt
browser/base/content/test/general/browser_bug537474.js
--- a/browser/base/content/test/general/browser_bug537474.js
+++ b/browser/base/content/test/general/browser_bug537474.js
@@ -1,8 +1,8 @@
 add_task(async function() {
-  let browserLoadedPromise = BrowserTestUtils.browserLoaded(gBrowser.selectedBrowser);
+  let browserLoadedPromise = BrowserTestUtils.browserLoaded(gBrowser.selectedBrowser, false, "about:mozilla");
   window.browserDOMWindow.openURI(makeURI("about:mozilla"), null,
                                   Ci.nsIBrowserDOMWindow.OPEN_CURRENTWINDOW, null,
                                   Services.scriptSecurityManager.getSystemPrincipal());
   await browserLoadedPromise;
   is(gBrowser.currentURI.spec, "about:mozilla", "page loads in the current content window");
 });