Closed
Bug 853449
Opened 12 years ago
Closed 12 years ago
Dispatching an event that's already being dispatched should throw InvalidStateError
Categories
(Core :: DOM: Events, defect)
Core
DOM: Events
Tracking
()
RESOLVED
FIXED
mozilla23
People
(Reporter: ayg, Assigned: ayg)
Details
Attachments
(1 file)
2.88 KB,
patch
|
smaug
:
review+
|
Details | Diff | Splinter Review |
Same exact idea as bug 687486. The spec <http://dom.spec.whatwg.org/#dom-eventtarget-dispatchevent> says InvalidStateError here, in contrast to previous specs that say an EventException should be thrown. At this point, DOM 3 Events agrees with InvalidStateError <http://dev.w3.org/2006/webapi/DOM-Level-3-Events/html/DOM3-Events.html#events-EventTarget-dispatchEvent>.
Tested by <http://w3c-test.org/webapps/DOMCore/tests/submissions/Ms2ger/EventTarget-dispatchEvent.html>.
Flags: in-testsuite+
Assignee | ||
Comment 1•12 years ago
|
||
Attachment #727681 -
Flags: review?(bugs)
Comment 2•12 years ago
|
||
Comment on attachment 727681 [details] [diff] [review]
Patch
I wonder if there is already a bug open for this.
Attachment #727681 -
Flags: review?(bugs) → review+
Assignee | ||
Comment 3•12 years ago
|
||
Caught the try run before reset, and it was green.
https://hg.mozilla.org/integration/mozilla-inbound/rev/2735d922d138
Comment 4•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla23
You need to log in
before you can comment on or make changes to this bug.
Description
•