Bug 941587 - Intermittent TEST-UNEXPECTED-FAIL | chrome://mochitests/content/browser/toolkit/components/satchel/test/browser/browser_privbrowsing_perwindowpb.js. r=ehsan, a=test-only
authorOlli Pettay <Olli.Pettay@helsinki.fi>
Wed, 11 Dec 2013 16:41:46 +0200
changeset 167684 4418ee14f23944b2ec8130e1bd8b6f46d0710d62
parent 167683 6bbfc4a81d0672fd28bc3d816a1ad5188aeab1e7
child 167685 ded7d454f63d7788b3614c0a1265c64c6c9b79aa
push id428
push userbbajaj@mozilla.com
push dateTue, 28 Jan 2014 00:16:25 +0000
treeherdermozilla-release@cd72a7ff3a75 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersehsan, test-only
bugs941587
milestone27.0
Bug 941587 - Intermittent TEST-UNEXPECTED-FAIL | chrome://mochitests/content/browser/toolkit/components/satchel/test/browser/browser_privbrowsing_perwindowpb.js. r=ehsan, a=test-only
toolkit/components/satchel/test/browser/browser_privbrowsing_perwindowpb.js
--- a/toolkit/components/satchel/test/browser/browser_privbrowsing_perwindowpb.js
+++ b/toolkit/components/satchel/test/browser/browser_privbrowsing_perwindowpb.js
@@ -9,16 +9,20 @@ function test() {
   // initialization
   waitForExplicitFinish();
   let windowsToClose = [];
   let testURI =
     "http://example.com/tests/toolkit/components/satchel/test/subtst_privbrowsing.html";
 
   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;
       function doneCheck() {
         checks++;
         if (checks == 2) {
           executeSoon(aCallback);
         }