Currently, inline handlers such as <body onload="foo()" are reported as starting at 0:0 to the debugger.
Created attachment 113324 [details] Patch
Originally I was going to remove TextPosition from SourceProvider and make it live entirely in the SourceCode (see straw man patch for that here: https://bugs.webkit.org/show_bug.cgi?id=71358). However, it was regressing the debugger functionality a bit. Here are the details: When debugger is enabled, recompilation takes place. It traverses heap functions in the heap, groups them by SourceProviders and reports them as "scripts" to the debugger. It is important that debugger receives its signals with the "script" granularity where each "script" has an offset in the resource with its "url". SourceProvider's ID is used as a "script" id in the debugger. It does sound that having position information on the SourceProvider is superfluous. But we do need this "script" concept and it sounds like SourceProvider is what we need (except for the name is confusing). So either we need to leave position information in it or we should make it reference the "top level" script it is associated with. Then we can leave text positions in SourceCodes only. In either case, this change seems like the right step in that direction.
Comment on attachment 113324 [details] Patch Attachment 113324 [details] did not pass mac-ews (mac): Output: http://queues.webkit.org/results/10148374
Committed r99167: <http://trac.webkit.org/changeset/99167>