mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-18 06:45:33 +00:00
Bug 944126 - Random failures with browser_privatebrowsing_aboutSessionRestore.js, r=ehsan
--HG-- extra : rebase_source : 163eb5bc1e765958136f7f54211cf5b0cca0a69d
This commit is contained in:
parent
4d0205662c
commit
22e896daba
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user