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)

defect
Not set
normal

Tracking

(firefox43 affected)

RESOLVED FIXED
Tracking Status
firefox43 --- affected

People

(Reporter: canuckistani, Unassigned)

Details

Attachments

(1 file)

Attached image onload-wat.gif
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.
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
Product: Firefox → DevTools

Looks like this is no longer an issue :)

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.

Attachment

General

Created:
Updated:
Size: