Bug 110432

Summary: Node::dispatchEvent(PassRefPtr<Event>) should assert parameter's eventType.
Product: WebKit Reporter: Hayato Ito <hayato>
Component: UI EventsAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: ap, webcomponents-bugzilla
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   

Description Hayato Ito 2013-02-20 22:50:48 PST
Node::dispatchEvent(PassRefPtr<Event>)  is likely to be wrongly used.

Node has other dispatchXXXEvent() functions, which must be called against each kinds of event type.
But we can not catch any misusage for other events to be dispatched through Event::dispatchEvent(PassRefPtr<Event>).
Comment 1 Hayato Ito 2013-02-20 22:53:32 PST
I prefer more type-safe way to dispatch events.