Index: third_party/WebKit/Source/core/dom/MessagePort.h |
diff --git a/third_party/WebKit/Source/core/dom/MessagePort.h b/third_party/WebKit/Source/core/dom/MessagePort.h |
index a18f3548dbde029789d9f212fd4a12aabdba9ada..7f2d1bc8175e661985422a38a499d034af4f8575 100644 |
--- a/third_party/WebKit/Source/core/dom/MessagePort.h |
+++ b/third_party/WebKit/Source/core/dom/MessagePort.h |
@@ -114,6 +114,14 @@ class CORE_EXPORT MessagePort : public EventTargetWithInlineData, |
return GetAttributeEventListener(EventTypeNames::message); |
} |
+ void setOnmessageerror(EventListener* listener) { |
+ SetAttributeEventListener(EventTypeNames::messageerror, listener); |
+ start(); |
+ } |
+ EventListener* onmessageerror() { |
+ return GetAttributeEventListener(EventTypeNames::messageerror); |
+ } |
+ |
// A port starts out its life entangled, and remains entangled until it is |
// closed or is cloned. |
bool IsEntangled() const { return !closed_ && !IsNeutered(); } |