From e525b7de36dd76d1099fec340705cf1ed9feac4c Mon Sep 17 00:00:00 2001 From: Masayuki Nakano Date: Thu, 5 Feb 2015 10:54:04 +0900 Subject: [PATCH] Bug 1129406 load event handler should remove itself with proper event name r=smaug --- dom/base/test/chrome/window_nsITextInputProcessor.xul | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dom/base/test/chrome/window_nsITextInputProcessor.xul b/dom/base/test/chrome/window_nsITextInputProcessor.xul index 1f6e62aedd4c..3102dd8089d4 100644 --- a/dom/base/test/chrome/window_nsITextInputProcessor.xul +++ b/dom/base/test/chrome/window_nsITextInputProcessor.xul @@ -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);