Bug 110432
| Summary: | Node::dispatchEvent(PassRefPtr<Event>) should assert parameter's eventType. | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Hayato Ito <hayato> |
| Component: | UI Events | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | ap, webcomponents-bugzilla |
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Hayato Ito
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Hayato Ito
I prefer more type-safe way to dispatch events.