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 168719 5f8971f4b856055b2868b6ebebb58a210bee3d90
parent 168718 15cbc305576064c207eed39faecf89a8c6a2e6cf
child 168720 a1c44ecd29e7c3eddc0c5ac3650de3abdb59d318
push id4716
push userryanvm@gmail.com
push dateThu, 12 Dec 2013 16:10:39 +0000
treeherdermozilla-aurora@6e64771384ca [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersehsan, test-only
bugs941587
milestone28.0a2
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);
         }