Bug 915184 - Wait for the default about:privatebrowsing page to appear before continuing the test. r=ehsan, a=test-only
☠☠ backed out by 6845b53f5b8b ☠ ☠
authorJosh Matthews <josh@joshmatthews.net>
Thu, 21 Nov 2013 17:58:16 +0800
changeset 166561 f1ede627d38ec8b5fc593ffc4bdb5358fdfd598e
parent 166560 7b9f04910402e59331e2757adb77ef5e2802d77d
child 166562 ca538a59ea6bfa948336cd6c579c95501c4231e5
push id3066
push userakeybl@mozilla.com
push dateMon, 09 Dec 2013 19:58:46 +0000
treeherdermozilla-beta@a31a0dce83aa [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
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
@@ -98,18 +98,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.