Closed
Bug 303720
Opened 19 years ago
Closed 7 years ago
XPConnect sometimes stomps on a pending JS exception
Categories
(Core :: XPConnect, defect)
Core
XPConnect
Tracking
()
RESOLVED
INCOMPLETE
People
(Reporter: brendan, Unassigned)
References
()
Details
(Keywords: helpwanted)
Attachments
(1 file)
|
2.93 KB,
patch
|
Details | Diff | Splinter Review |
I found this while debugging bug 303163. In that case, a syntax error exception thrown by the compiler was pending, but nsEventListenerManager code called from nsDOMClassInfo.cpp's nsEventReceiverSH::RegisterCompileHandler took that JS error and turned it into NS_ERROR_FAILURE, which XPConnect's XPC_WN_Helper_NewResolve then wrapped into a new exception via Throw(rv, cx). That stomped the pending JS error. /be
Updated•19 years ago
|
Comment 1•19 years ago
|
||
I'd have thought that something like this would work, but this makes no errors at all appear. If I keep returning NS_ERROR_FAILURE, then I do get those errors, but the first syntax error is still eaten by something...
Updated•19 years ago
|
Keywords: helpwanted
Updated•18 years ago
|
Assignee: dbradley → nobody
Updated•18 years ago
|
QA Contact: pschwartau → xpconnect
Updated•7 years ago
|
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INCOMPLETE
You need to log in
before you can comment on or make changes to this bug.
Description
•