Bug 1073992 - Fix bc1-pgo bustage on a CLOSED TREE by flushing the main window's tab r=bustage
authorTim Taubert <ttaubert@mozilla.com>
Thu, 09 Oct 2014 19:43:51 +0200
changeset 209690 82df8ad2c609a2e5411330eef7954fd36f2aa3d7
parent 209689 4b9e08526336f83f305cbdc85e93da7ce8401dfa
child 209691 b197c72ec2c290ad3cc41ae5728c7957adf9b56a
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewersbustage
bugs1073992
milestone35.0a1
Bug 1073992 - Fix bc1-pgo bustage on a CLOSED TREE by flushing the main window's tab r=bustage
browser/components/sessionstore/test/browser_revive_windows.js
--- a/browser/components/sessionstore/test/browser_revive_windows.js
+++ b/browser/components/sessionstore/test/browser_revive_windows.js
@@ -68,16 +68,17 @@ add_task(function* test_revive_windows_o
   // We can restore up to three windows max.
   Services.prefs.setIntPref(PREF_MAX_UNDO, 3);
 
   // Clear list of closed windows.
   forgetClosedWindows();
 
   let tab = gBrowser.addTab(URL_MAIN_WINDOW);
   yield promiseBrowserLoaded(tab.linkedBrowser);
+  TabState.flush(tab.linkedBrowser);
   registerCleanupFunction(() => gBrowser.removeTab(tab));
 
   let win0 = yield promiseNewWindow();
   let tab0 = win0.gBrowser.addTab(URL_CLOSED_WINDOW);
   yield promiseBrowserLoaded(tab0.linkedBrowser);
 
   yield promiseWindowClosed(win0);
   let data = ss.getClosedWindowData();