Bug 110432 - Node::dispatchEvent(PassRefPtr<Event>) should assert parameter's eventType.
Summary: Node::dispatchEvent(PassRefPtr<Event>) should assert parameter's eventType.
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: UI Events (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-20 22:50 PST by Hayato Ito
Modified: 2013-02-21 09:55 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.