bugzilla.mozilla.org will be intermittently unavailable on Saturday, March 24th, from 16:00 until 20:00 UTC.
Created attachment 8654327 [details] 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
You need to log in before you can comment on or make changes to this bug.