Bug 725679 - "suite/common/tests/browser/browser_346337.js | Test timed out". r=sgautherie f=Neil a=Callek
authorJens Hatlak <jh@junetz.de>
Sat, 11 Feb 2012 08:47:00 +0100
changeset 9918 4138254af9bf2a14382f974d19a0183ef8e6bfd5
parent 9917 cdf01bf6473ecb3802fd0e1400cabdbf9dd5aeba
child 9919 d30a1377f5bce803491c159bf8acb6ed6999fc3b
push id417
push userjh@junetz.de
push dateWed, 07 Mar 2012 20:37:06 +0000
treeherdercomm-aurora@4138254af9bf [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssgautherie, Callek
bugs725679
Bug 725679 - "suite/common/tests/browser/browser_346337.js | Test timed out". r=sgautherie f=Neil a=Callek
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"))