Bug 944126 - Random failures with browser_privatebrowsing_aboutSessionRestore.js, r=ehsan

This commit is contained in:
Olli Pettay
2013-11-28 18:50:18 +02:00
parent b4612e0ea6
commit 3ef0412819

View File

@@ -18,6 +18,10 @@ function test() {
win.gBrowser.selectedTab = newTab;
let tabBrowser = win.gBrowser.getBrowserForTab(newTab);
tabBrowser.addEventListener("load", function tabLoadListener() {
if (win.gBrowser.contentWindow.location != "about:sessionrestore") {
win.gBrowser.selectedBrowser.loadURI("about:sessionrestore");
return;
}
tabBrowser.removeEventListener("load", tabLoadListener, true);
executeSoon(function() {
info("about:sessionrestore got loaded");