Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(815)

Unified Diff: third_party/WebKit/Source/core/html/HTMLBodyElement.cpp

Issue 2860483002: Add messageerror event handler (Closed)
Patch Set: fix test Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/html/HTMLBodyElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLBodyElement.cpp b/third_party/WebKit/Source/core/html/HTMLBodyElement.cpp
index 265cd0b1c48fa1e4ba20675aabd1b44702f6d60a..b02a4d67552fcf762a8ff57baf4246429988a9a6 100644
--- a/third_party/WebKit/Source/core/html/HTMLBodyElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLBodyElement.cpp
@@ -176,6 +176,11 @@ void HTMLBodyElement::ParseAttribute(
EventTypeNames::message,
CreateAttributeEventListener(GetDocument().GetFrame(), name, value,
EventParameterName()));
+ } else if (name == onmessageerrorAttr) {
+ GetDocument().SetWindowAttributeEventListener(
+ EventTypeNames::messageerror,
+ CreateAttributeEventListener(GetDocument().GetFrame(), name, value,
+ EventParameterName()));
} else if (name == onresizeAttr) {
GetDocument().SetWindowAttributeEventListener(
EventTypeNames::resize,

Powered by Google App Engine
This is Rietveld 408576698