| Summary: | dispatchEvent() should throw an InvalidStateError if the event's initialized flag is not set | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Chris Dumez <cdumez> | ||||||
| Component: | DOM | Assignee: | Chris Dumez <cdumez> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | commit-queue, esprehn+autocc, kangil.han, rniwa, webkit-bug-importer | ||||||
| Priority: | P2 | Keywords: | InRadar, WebExposed | ||||||
| Version: | Other | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| URL: | https://dom.spec.whatwg.org/#dom-eventtarget-dispatchevent | ||||||||
| Bug Depends on: | 148883 | ||||||||
| Bug Blocks: | |||||||||
| Attachments: |
|
||||||||
|
Description
Chris Dumez
2015-09-04 09:59:42 PDT
Created attachment 260597 [details]
Patch
Comment on attachment 260597 [details]
Patch
r=me
Comment on attachment 260597 [details] Patch Clearing flags on attachment: 260597 Committed r189386: <http://trac.webkit.org/changeset/189386> All reviewed patches have been landed. Closing bug. This change appears to have made several tests assert, rolling out. https://build.webkit.org/results/Apple%20Yosemite%20Debug%20WK2%20(Tests)/r189417%20(6763)/results.html Re-opened since this is blocked by bug 148883 Created attachment 260694 [details]
Patch
Comment on attachment 260694 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=260694&action=review > Source/WebCore/dom/EventTarget.cpp:-194 > - ASSERT(event && !event->type().isEmpty()); Fixed outdated assertion as it is now valid to dispatch an event with an empty type, as long as the event has its initialized flag set to true. Comment on attachment 260694 [details] Patch Clearing flags on attachment: 260694 Committed r189452: <http://trac.webkit.org/changeset/189452> All reviewed patches have been landed. Closing bug. |