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
Родитель 09ef68bf15
Коммит e525b7de36
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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);