Open
Bug 641477
Opened 15 years ago
Updated 3 years ago
Throw UNSPECIFIED_EVENT_TYPE_ERR if event isn't initialized before dispatching
Categories
(Core :: DOM: Events, defect)
Tracking
()
NEW
People
(Reporter: smaug, Assigned: smaug)
Details
Attachments
(1 file, 1 obsolete file)
10.36 KB,
patch
|
sicking
:
review+
|
Details | Diff | Splinter Review |
.
Assignee | ||
Comment 1•15 years ago
|
||
This is way more complicated than I was hoping for, but
we just didn't have EventException.
Attachment #519160 -
Flags: review?(jonas)
Assignee | ||
Comment 2•15 years ago
|
||
Attachment #519160 -
Attachment is obsolete: true
Attachment #519160 -
Flags: review?(jonas)
Attachment #519166 -
Flags: review?(jonas)
Attachment #519166 -
Flags: review?(jonas) → review+
Comment 3•15 years ago
|
||
(In reply to comment #1)
> Created attachment 519160 [details] [diff] [review]
> patch
>
> This is way more complicated than I was hoping for, but
> we just didn't have EventException.
And we shouldn't have added it without a use case.
Assignee | ||
Comment 4•15 years ago
|
||
I don't understand that comment.
I think there was an agreement how
event creation/dispatch should work; throw exception if the
event isn't initialized before dispatching.
And the use case is sane API.
Comment 5•15 years ago
|
||
Throwing an exception is fine, implementing EventException is unnecessary bloat.
Assignee | ||
Comment 6•15 years ago
|
||
Well, that is what the current specification requires, and that
is what is implemented in other engines.
Comment 7•15 years ago
|
||
At least Google [1], and I assume Opera as well, are willing to change, and Doug hasn't replied to the feedback yet. It seems rather strange to implement it now, given that the spec has required it for over a decade.
[1] http://lists.w3.org/Archives/Public/www-dom/2011JanMar/0078.html
Assignee | ||
Comment 8•15 years ago
|
||
Well, which error code should be thrown?
Currently Web DOM Core doesn't seem to define that case at all.
Assignee | ||
Comment 9•15 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/22a798b4a012
This anyway now fixed. But if there will be a spec
which specifies some other error code and deprecates EventException,
I'd be happy to back out that and implement the new approach.
Comment 10•15 years ago
|
||
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•