Bug 1101624. Try loading a real page after starting the progress listeners to fix browser_alltabslistener.js. r=Gijs
authorDave Townsend <dtownsend@oxymoronical.com>
Mon, 15 Dec 2014 14:32:29 -0800
changeset 219908 802cc1027e7691e26628f778cabc419813fe7c67
parent 219907 1d88918bd1f5527a8902d1811c3d142dc9962ab9
child 219909 1439cb361d99fa1d58b7164018177213656a0090
push id52946
push usercbook@mozilla.com
push dateTue, 16 Dec 2014 12:43:15 +0000
treeherdermozilla-inbound@df8db207bf66 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersGijs
bugs1101624
milestone37.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1101624. Try loading a real page after starting the progress listeners to fix browser_alltabslistener.js. r=Gijs
browser/base/content/test/general/browser_alltabslistener.js
--- a/browser/base/content/test/general/browser_alltabslistener.js
+++ b/browser/base/content/test/general/browser_alltabslistener.js
@@ -82,28 +82,30 @@ var gFrontNotifications, gAllNotificatio
 var gBackgroundTab, gForegroundTab, gBackgroundBrowser, gForegroundBrowser, gTestBrowser;
 var gTestPage = "/browser/browser/base/content/test/general/alltabslistener.html";
 const kBasePage = "http://example.org/browser/browser/base/content/test/general/dummy_page.html";
 var gNextTest;
 
 function test() {
   waitForExplicitFinish();
 
-  gBackgroundTab = gBrowser.addTab(kBasePage);
-  gForegroundTab = gBrowser.addTab(kBasePage);
+  gBackgroundTab = gBrowser.addTab();
+  gForegroundTab = gBrowser.addTab();
   gBackgroundBrowser = gBrowser.getBrowserForTab(gBackgroundTab);
   gForegroundBrowser = gBrowser.getBrowserForTab(gForegroundTab);
   gBrowser.selectedTab = gForegroundTab;
 
-  // We must wait until the about:blank page has completed loading before
+  // We must wait until a page has completed loading before
   // starting tests or we get notifications from that
   let promises = [
     waitForDocLoadComplete(gBackgroundBrowser),
     waitForDocLoadComplete(gForegroundBrowser)
   ];
+  gBackgroundBrowser.loadURI(kBasePage);
+  gForegroundBrowser.loadURI(kBasePage);
   Promise.all(promises).then(startTest1);
 }
 
 function runTest(browser, url, next) {
   gFrontNotificationsPos = 0;
   gAllNotificationsPos = 0;
   gNextTest = next;
   gTestBrowser = browser;