Bug 915184 - Wait for the default about:privatebrowsing page to appear before continuing the test. r=ehsan, a=test-only
authorJosh Matthews <josh@joshmatthews.net>
Thu, 21 Nov 2013 17:58:16 +0800
changeset 167519 797ace61ac852fe3ba7df0328e495011859ab168
parent 167518 8ec92e05a6d2abe5e6f8ceccb2a2dfa4c9177517
child 167520 fa324ac537dd58ff6674f9e5123b2a04519ee780
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
bugs915184
milestone27.0a2
Bug 915184 - Wait for the default about:privatebrowsing page to appear before continuing the test. r=ehsan, a=test-only CLOSED TREE
browser/base/content/test/general/browser_save_private_link_perwindowpb.js
--- a/browser/base/content/test/general/browser_save_private_link_perwindowpb.js
+++ b/browser/base/content/test/general/browser_save_private_link_perwindowpb.js
@@ -102,18 +102,16 @@ function test() {
         aWindow.document.addEventListener("popupshown",
                                           function(e) contextMenuOpened(aWindow, e), false);
         var img = aWindow.gBrowser.selectedBrowser.contentDocument.getElementById("img");
         EventUtils.synthesizeMouseAtCenter(img,
                                            { type: "contextmenu", button: 2 },
                                            aWindow.gBrowser.contentWindow);
       });
     });
-
-    aWindow.gBrowser.selectedBrowser.loadURI(testURI);
   }
 
   function testOnWindow(aOptions, aCallback) {
     whenNewWindowLoaded(aOptions, function(aWin) {
       windowsToClose.push(aWin);
       // execute should only be called when need, like when you are opening
       // web pages on the test. If calling executeSoon() is not necesary, then
       // call whenNewWindowLoaded() instead of testOnWindow() on your test.