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   

Hayato Ito
Reported 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>).
Attachments
Hayato Ito
Comment 1 2013-02-20 22:53:32 PST
I prefer more type-safe way to dispatch events.
Note You need to log in before you can comment on or make changes to this bug.