Bug 635844 - Update pushState to latest spec. Again.; (AAv1) Fix (2) removeEventListener() 3rd param, from bug 500328 and this bug.
authorSerge Gautherie <sgautherie.bz@free.fr>
Tue, 15 Mar 2011 00:44:59 +0100
changeset 63411 4866be78732f042ba9ffed96fc69a40942d16e26
parent 63410 415f9b51fc5cde93ace926db15bd3ed603e32ce2
child 63412 5f7f9a0d61621f77c974ddaa1da8bcef058f6d31
push id19200
push usersgautherie.bz@free.fr
push dateMon, 14 Mar 2011 23:45:43 +0000
treeherdermozilla-central@4866be78732f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs635844, 500328
milestone2.0b13pre
first release with
nightly linux32
4866be78732f / 4.0b13pre / 20110315030415 / files
nightly linux64
4866be78732f / 4.0b13pre / 20110315030415 / files
nightly mac
4866be78732f / 4.0b13pre / 20110315030415 / files
nightly win32
4866be78732f / 4.0b13pre / 20110315030415 / files
nightly win64
4866be78732f / 4.0b13pre / 20110315030202 / files
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
releases
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 635844 - Update pushState to latest spec. Again.; (AAv1) Fix (2) removeEventListener() 3rd param, from bug 500328 and this bug. r=jonas (a=test-only).
browser/components/sessionstore/test/browser/browser_500328.js
--- a/browser/components/sessionstore/test/browser/browser_500328.js
+++ b/browser/components/sessionstore/test/browser/browser_500328.js
@@ -72,18 +72,18 @@ function checkState(tab) {
       // previous entry, which is bad.
       let doc = contentWindow.document;
       let newElem = doc.getElementById("new-elem");
       ok(newElem, "doc should contain new-elem.");
       newElem.parentNode.removeChild(newElem);
       ok(!doc.getElementById("new-elem"), "new-elem should be removed.");
 
       // Clean up after ourselves and finish the test.
-      tab.linkedBrowser.removeEventListener("popstate", arguments.callee, false);
-      tab.linkedBrowser.removeEventListener("load", arguments.callee, false);
+      tab.linkedBrowser.removeEventListener("popstate", arguments.callee, true);
+      tab.linkedBrowser.removeEventListener("load", arguments.callee, true);
       gBrowser.removeTab(tab);
       finish();
     }
   };
 
   tab.linkedBrowser.addEventListener("load", handler, true);
   tab.linkedBrowser.addEventListener("popstate", handler, true);