NEW110432
Node::dispatchEvent(PassRefPtr<Event>) should assert parameter's eventType.
https://bugs.webkit.org/show_bug.cgi?id=110432
Summary Node::dispatchEvent(PassRefPtr<Event>) should assert parameter's eventType.
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.