Closed
Bug 1199780
Opened 9 years ago
Closed 5 years ago
Stack traces point onload handlers to the first line of the document
Categories
(DevTools :: Debugger, defect)
DevTools
Debugger
Tracking
(firefox43 affected)
RESOLVED
FIXED
Tracking | Status | |
---|---|---|
firefox43 | --- | affected |
People
(Reporter: canuckistani, Unassigned)
Details
Attachments
(1 file)
519.72 KB,
image/gif
|
Details |
STR: 1. use a build with the changes in bug 1184172 2. open the test page from that bug ( https://bug814497.bmoattachments.org/attachment.cgi?id=684492 ) 3. open the console and expand the stack trace ER: click on onload() should switch to the debugger and highlight the body tag, where the onload attribute is actually defined. AR: clicking on onload() switches instead to the first line of the html file. See attached gif.
Comment 1•9 years ago
|
||
This is a long-standing issue of the way the platform stores sources. The actual line number in these cases is 1 (or 0, can't remember), because the entire source is the contents of the DOM attribute. I don't know if any recent changes in Debugger.Source can help alleviate this. I bet there is another bug for this.
Component: Developer Tools: Console → Developer Tools: Debugger
Updated•6 years ago
|
Product: Firefox → DevTools
Comment 2•5 years ago
|
||
Looks like this is no longer an issue :)
Updated•5 years ago
|
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•