Open
Bug 630464
Opened 14 years ago
Updated 2 years ago
Add a pointer to the exception value in JSErrorReport so it can be passed to window.onerror
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
People
(Reporter: bzbarsky, Unassigned)
References
(Blocks 1 open bug)
Details
Brendan offered this as a way to punch a hole through the js layer between the xpconnect exception creator and the DOM error reporter exception consumer. Then we can change the DOM code to use that info, and fix bug 482137.
Comment 1•14 years ago
|
||
Information leaks beware. Make sure this stashed value is wrapped properly to censor information leaks.
![]() |
Reporter | |
Comment 2•14 years ago
|
||
Wrapped in what sense?
I assume that we would censor it the same exact way we currently censor exceptions already in the dom error reporter, no?
Comment 3•14 years ago
|
||
Yeah. We just have to suddenly wrap where we didn't have to wrap before. Also, JSErrorReport is not going to keep the value alive. Are you sure it is rooted somewhere?
![]() |
Reporter | |
Comment 4•14 years ago
|
||
brendan hand-waved something about making sure it's rooted, yes... ;)
I'm still not sure where we need where we didn't have to wrap before...
Comment 5•14 years ago
|
||
The wrapping worry would be if an exception was uncaught and the reporter was called from a different compartment. But shouldn't the exception be wrapped as it throws across compartment boundaries?
I didn't hand-wave rooting, I said we need to root the thrown exception value!
brendan: bz: we can extend JSErrorReport with a copy of the pending exception value (need to make sure it's rooted, via stack conservatively if possible)
/be
![]() |
Reporter | |
Comment 6•12 years ago
|
||
The HTML spec just added a new argument to window.onerror: the original exception, so that .stack can be gotten from it.
We can't implement that unless this bug is fixed.
![]() |
Reporter | |
Updated•12 years ago
|
Summary: Add a pointer to the exception value in JSErrorReport → Add a pointer to the exception value in JSErrorReport so it can be passed to window.onerror
![]() |
||
Comment 7•11 years ago
|
||
This blocks getting stacks from JS errors, which is extremely useful for QA/Stability teams for Firefox OS, and which blocks bug 355430, so nominating for b2g.
blocking-b2g: --- → 1.3?
Updated•11 years ago
|
Assignee: general → jwalden+bmo
Updated•11 years ago
|
Comment 9•11 years ago
|
||
(In reply to Gary Kwong [:gkw] [:nth10sd] (yes, still catching up on bugmail) from comment #7)
> This blocks getting stacks from JS errors, which is extremely useful for
> QA/Stability teams for Firefox OS, and which blocks bug 355430, so
> nominating for b2g.
This isn't a committed feature for 1.3, so this isn't a blocker.
blocking-b2g: 1.3? → -
Comment 10•3 years ago
|
||
The bug assignee is inactive on Bugzilla, so the assignee is being reset.
Assignee: jwalden → nobody
Status: ASSIGNED → NEW
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•