Bug 658738 - really remove event listener from the browser

This commit is contained in:
Dão Gottwald 2011-06-27 07:44:04 +02:00
parent 56d9b00e15
commit 4004fc4ed4

View File

@ -149,7 +149,7 @@ function test() {
let tab_A2 = gBrowser.addTab("http://example.com");
tab_A2.linkedBrowser.addEventListener("load", function(aEvent) {
tab_A2.removeEventListener("load", arguments.callee, true);
tab_A2.linkedBrowser.removeEventListener("load", arguments.callee, true);
gBrowser.selectedTab = tab_A2;
is(getPriority(tab_A1), Ci.nsISupportsPriority.PRIORITY_LOWEST - PRIORITY_DELTA,
"Can adjust priority beyond 'lowest'");