Closed
Bug 697300
Opened 13 years ago
Closed 13 years ago
Cascaded event listeners don't throw exceptions
Categories
(Core :: DOM: Events, defect)
Core
DOM: Events
Tracking
()
RESOLVED
DUPLICATE
of bug 503244
People
(Reporter: sonny, Unassigned)
Details
Attachments
(1 file, 1 obsolete file)
1.80 KB,
application/xhtml+xml
|
Details |
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0a1) Gecko/20111025 Firefox/10.0a1
Build ID: 20111025031041
Steps to reproduce:
Neither exceptions or user defined exceptions are thrown on the error console when the execution context in a DOM3 CustomEvent listener.
See my attachment testcase.xhml
Comment 1•13 years ago
|
||
This page http://jsfiddle.net/2Kvpy/6/ throws an exception.
It is not shown in the Web Console.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Updated•13 years ago
|
OS: Linux → All
Hardware: x86_64 → All
Version: 10 Branch → Trunk
Comment 3•13 years ago
|
||
I think it is (same code but with a click event works as expected).
Updated•13 years ago
|
Attachment #569532 -
Attachment mime type: application/octet-stream → application/xhtml+xml
Comment 4•13 years ago
|
||
(In reply to Paul Rouget [:paul] from comment #3)
> I think it is (same code but with a click event works as expected).
If I change your testcase to create "Event" and call initEvent, the behavior is the same as
with creating CustomEvent. And I see same behavior with MouseEvent.click too.
It is not clear to me this has anything to do with CustomEvent.
Could someone write a testcase which shows that this is specific to CustomEvents.
(I believe this is dup of a bug where exceptions thrown from addEventListener-added listener
aren't shown in the error console, or something like that. That bug is, IIRC, somewhere in
XPConnect level)
Reporter | ||
Updated•13 years ago
|
No longer blocks: 427537
Summary: DOM3 CustomEvent listeners don't throw exceptions → Cascaded event listeners don't throw exceptions
Reporter | ||
Comment 5•13 years ago
|
||
Attachment #569532 -
Attachment is obsolete: true
Reporter | ||
Comment 6•13 years ago
|
||
(In reply to Olli Pettay [:smaug] from comment #4)
> It is not clear to me this has anything to do with CustomEvent.
You're right, not related with CustomEvent.
It looks related to cascaded event listeners, see the new testcase.
Reporter | ||
Updated•13 years ago
|
Attachment #569693 -
Attachment mime type: application/octet-stream → application/xhtml+xml
Comment 7•13 years ago
|
||
Stepping through this in gdb, it looks like the same problem as bug 503244. XPCWrappedJSClass::CheckForException calls the error reporter, which sees JS on the stack and doesn't report, then clears the pending exception.
Comment 8•13 years ago
|
||
Given that a patch for bug 503244 also fixes this bug, I'm calling this a duplicate. This is a helpful testcase though; thanks.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•