| Index: third_party/WebKit/Source/core/events/EventTarget.cpp
|
| diff --git a/third_party/WebKit/Source/core/events/EventTarget.cpp b/third_party/WebKit/Source/core/events/EventTarget.cpp
|
| index 1e283f2351d51fd792e8f6fc3dcf992b9350ae6b..230c6756ff1dd0844ccd0969d4815389b1012a73 100644
|
| --- a/third_party/WebKit/Source/core/events/EventTarget.cpp
|
| +++ b/third_party/WebKit/Source/core/events/EventTarget.cpp
|
| @@ -256,7 +256,7 @@ bool EventTarget::clearAttributeEventListener(const AtomicString& eventType)
|
|
|
| bool EventTarget::dispatchEventForBindings(Event* event, ExceptionState& exceptionState)
|
| {
|
| - if (event->type().isEmpty()) {
|
| + if (!event->wasInitialized()) {
|
| exceptionState.throwDOMException(InvalidStateError, "The event provided is uninitialized.");
|
| return false;
|
| }
|
| @@ -360,7 +360,8 @@ void EventTarget::countLegacyEvents(const AtomicString& legacyTypeName, EventLis
|
| DispatchEventResult EventTarget::fireEventListeners(Event* event)
|
| {
|
| ASSERT(!EventDispatchForbiddenScope::isEventDispatchForbidden());
|
| - ASSERT(event && !event->type().isEmpty());
|
| + DCHECK(event);
|
| + DCHECK(event->wasInitialized());
|
|
|
| EventTargetData* d = eventTargetData();
|
| if (!d)
|
|
|