mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-02 14:24:22 +00:00
Bug 941587 - Intermittent TEST-UNEXPECTED-FAIL | chrome://mochitests/content/browser/toolkit/components/satchel/test/browser/browser_privbrowsing_perwindowpb.js, r=ehsan
This commit is contained in:
parent
1758a70e95
commit
cfac358560
@ -14,6 +14,10 @@ function test() {
|
|||||||
|
|
||||||
function doTest(aIsPrivateMode, aShouldValueExist, aWindow, aCallback) {
|
function doTest(aIsPrivateMode, aShouldValueExist, aWindow, aCallback) {
|
||||||
aWindow.gBrowser.selectedBrowser.addEventListener("load", function onLoad() {
|
aWindow.gBrowser.selectedBrowser.addEventListener("load", function onLoad() {
|
||||||
|
if (aWindow.content.location != testURI) {
|
||||||
|
aWindow.gBrowser.selectedBrowser.loadURI(testURI);
|
||||||
|
return;
|
||||||
|
}
|
||||||
aWindow.gBrowser.selectedBrowser.removeEventListener("load", onLoad, true);
|
aWindow.gBrowser.selectedBrowser.removeEventListener("load", onLoad, true);
|
||||||
|
|
||||||
let checks = 0;
|
let checks = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user