Bug 725679 - "suite/common/tests/browser/browser_346337.js | Test timed out". r=sgautherie f=Neil
authorJens Hatlak <jh@junetz.de>
Sat, 11 Feb 2012 08:47:00 +0100
changeset 9388 650205a133cd5425294cdc62ad0bbf7200dcb4bc
parent 9387 9bc10aca6cd56fa7f03b3907891f098b99be6361
child 9389 de184df942a78b0192bbed1176841abf1a5dd64c
push id7184
push userjh@junetz.de
push dateTue, 14 Feb 2012 18:20:04 +0000
treeherdercomm-central@650205a133cd [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssgautherie
bugs725679
Bug 725679 - "suite/common/tests/browser/browser_346337.js | Test timed out". r=sgautherie f=Neil
suite/common/tests/browser/browser_346337.js
--- a/suite/common/tests/browser/browser_346337.js
+++ b/suite/common/tests/browser/browser_346337.js
@@ -127,18 +127,18 @@ function test() {
       setFormValue(tab, xpath, fieldList[xpath]);
 
     let tab2 = ss.duplicateTab(window,tab);
     tab2.linkedBrowser.addEventListener("pageshow", function(aEvent) {
       for (let xpath in fieldList)
         ok(compareFormValue(tab2, xpath, fieldList[xpath]),
            "The value for \"" + xpath + "\" was correctly restored");
       let browser = tab.linkedBrowser;
-      tab.linkedBrowser.addEventListener("pageshow", function(aEvent) {
-        browser.removeEventListener("pageshow", arguments.callee, true);
+      tab.linkedBrowser.addEventListener("load", function(aEvent) {
+        browser.removeEventListener("load", arguments.callee, true);
         let tab3 = tabbrowser.undoCloseTab(0);
         tab3.linkedBrowser.addEventListener("pageshow", function(aEvent) {
           for (let xpath in fieldList)
             if (fieldList[xpath])
               ok(!compareFormValue(tab3, xpath, fieldList[xpath]),
                  "The value for \"" + xpath + "\" was correctly discarded");
 
         if (gPrefService.prefHasUserValue("browser.sessionstore.privacy_level"))