Bug 1093655 - Fix intermittent browser_crashedTabs.js failures. a=test-only
authorTim Taubert <ttaubert@mozilla.com>
Fri, 23 Jan 2015 12:02:59 +0100
changeset 243013 957b4a673416
parent 243012 d0660bbc79a1
child 243014 cb0fd5d9a263
push id4363
push userryanvm@gmail.com
push date2015-01-23 21:41 +0000
treeherdermozilla-beta@957b4a673416 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstest-only
bugs1093655
milestone36.0
Bug 1093655 - Fix intermittent browser_crashedTabs.js failures. a=test-only
browser/components/sessionstore/test/browser_crashedTabs.js
--- a/browser/components/sessionstore/test/browser_crashedTabs.js
+++ b/browser/components/sessionstore/test/browser_crashedTabs.js
@@ -226,17 +226,17 @@ add_task(function test_revived_history_f
   // Crash the tab
   yield crashBrowser(browser);
   // Flush out any notifications from the crashed browser.
   TabState.flush(browser);
 
   // Browse to a new site that will cause the browser to
   // become remote again.
   browser.loadURI(PAGE_2);
-  yield promiseBrowserLoaded(browser);
+  yield promiseTabRestored(newTab);
   ok(browser.isRemoteBrowser, "Should be a remote browser");
   TabState.flush(browser);
 
   // Check the tab state and make sure the tab crashed page isn't
   // mentioned.
   let {entries} = JSON.parse(ss.getTabState(newTab));
   is(entries.length, 2, "Should have two history entries");
   is(entries[0].url, PAGE_1,