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:
Olli Pettay 2013-12-11 16:41:46 +02:00
parent 1758a70e95
commit cfac358560

View File

@ -14,6 +14,10 @@ function test() {
function doTest(aIsPrivateMode, aShouldValueExist, aWindow, aCallback) {
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);
let checks = 0;