Bug 944128 - Random failures with test_bug_461710_perwindowpb.html. r=ehsan, a=test-only
authorOlli Pettay <Olli.Pettay@helsinki.fi>
Thu, 28 Nov 2013 18:51:08 +0200
changeset 167771 b7c9e1ddcf5a8528174740f662f1c68e64434759
parent 167770 9f4b4417d125f472ab2edacb0fee72438f6839af
child 167772 8bb67e4b5d97ec96e3c59e606568d84faf3479bd
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
bugs944128
milestone27.0
Bug 944128 - Random failures with test_bug_461710_perwindowpb.html. r=ehsan, a=test-only
toolkit/components/places/tests/mochitest/test_bug_461710_perwindowpb.html
--- a/toolkit/components/places/tests/mochitest/test_bug_461710_perwindowpb.html
+++ b/toolkit/components/places/tests/mochitest/test_bug_461710_perwindowpb.html
@@ -165,17 +165,17 @@ var mainWindow = window.QueryInterface(C
                     .getInterface(Ci.nsIDOMWindow);
 var contentPage = "http://mochi.test:8888/tests/toolkit/components/places/tests/mochitest/bug_461710/iframe.html";
 
 function testOnWindow(aIsPrivate, aCallback) {
   var win = mainWindow.OpenBrowserWindow({private: aIsPrivate});
   win.addEventListener("load", function onLoad() {
     win.removeEventListener("load", onLoad, false);
     win.addEventListener("DOMContentLoaded", function onInnerLoad() {
-      if (win.content.location.href == "about:privatebrowsing") {
+      if (win.content.location.href != contentPage) {
         win.gBrowser.loadURI(contentPage);
         return;
       }
       win.removeEventListener("DOMContentLoaded", onInnerLoad, true);
       win.gBrowser.selectedBrowser.focus();
       SimpleTest.executeSoon(function() { aCallback(win); });
     }, true);
     SimpleTest.executeSoon(function() { win.gBrowser.loadURI(contentPage); });