Closed
Bug 1174133
Opened 10 years ago
Closed 9 months ago
Error objects should provide different fileName/columnNumber/lineNumber to different consumers
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
WONTFIX
| Tracking | Status | |
|---|---|---|
| firefox41 | --- | affected |
People
(Reporter: bzbarsky, Unassigned)
Details
Specifically, a content exception that got thrown from chrome code (e.g. via new contentWindow.Error) should show the content code that was on the stack at the time (if any) when viewed from content and the chrome code when viewed from chrome. That's how DOMException works.
This probably requires making fileName/lineNumber/columnNumber accessors instead of slots and having them read from the saved stack if one is present instead of from the filename/line/column stored in the JSErrorReport.
It also requires at least fixing the self-hosting treatment in saved stacks (see bug 1173638 comment 1 item 1).
Comment 1•10 years ago
|
||
These properties are non-standard, right? Chrome doesn't have them. Therefore, there shouldn't be too many web compat issues, and we are free to change them to accessor properties without Breaking The Web?
Comment 2•10 years ago
|
||
I doubt it'll be that easy, but feel free to try.
| Reporter | ||
Comment 3•10 years ago
|
||
Didn't realize other UAs did not support these.
That does make it easier to do whatever the heck we want for now and then if people ever want to standardize these to push back on attempts to make them value props.
Updated•3 years ago
|
Severity: normal → S3
Comment 4•9 months ago
|
||
I no longer understand the request of this bug, so I'm going to close this as WONTFIX. If anyone can explain more clearly the desire here, I would gladly re-open this.
Status: NEW → RESOLVED
Closed: 9 months ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•