Bug 1129406 load event handler should remove itself with proper event name r=smaug

This commit is contained in:
Masayuki Nakano 2015-02-05 10:54:04 +09:00
parent 59425c759f
commit c8bda51c33

View File

@ -829,7 +829,7 @@ function runUnloadTests1(aNextTest)
iframe.addEventListener("load", function () {
ok(true, description + "old iframe is restored");
// And also restore the iframe information with restored contents.
iframe.removeEventListener("DOMContentLoaded", arguments.callee, true);
iframe.removeEventListener("load", arguments.callee, true);
childWindow = iframe.contentWindow;
textareaInFrame = iframe.contentDocument.getElementById("textarea");
setTimeout(aNextTest, 0);