RESOLVED FIXED 20322
XHRs logged in the console do not have line numbers
https://bugs.webkit.org/show_bug.cgi?id=20322
Summary XHRs logged in the console do not have line numbers
Kevin McCullough
Reported 2008-08-07 13:50:40 PDT
8/5/08 11:04 AM Kevin McCullough: * SUMMARY In the console an XHR that is logged does not have line numbers so when clicking the URL of the resource that loaded it, the user is not taken to the line where the load occurred. This is a feature that works in Firebug. <rdar://problem/6126262 >
Attachments
proposed patch (3.36 KB, patch)
2008-09-24 16:49 PDT, Kevin McCullough
ggaren: review+
Kevin McCullough
Comment 1 2008-09-24 16:49:40 PDT
Created attachment 23770 [details] proposed patch
Geoffrey Garen
Comment 2 2008-09-24 16:54:56 PDT
Comment on attachment 23770 [details] proposed patch This work seems harmless enough that it's OK to do even when the develop menu is disabled. Perhaps a Shark profile will tell us otherwise in the future.
Timothy Hatcher
Comment 3 2008-09-24 20:13:34 PDT
You need to check the line number for -1, the error case. Otherwise storing it in the unsigned will give a huge number. The inspector expects 0 for unknown line numbers, not -1. This is done in Console.cpp like: lineNumber = (signedLineNumber >= 0 ? signedLineNumber : 0);
Kevin McCullough
Comment 4 2008-09-25 09:05:03 PDT
Committed revision 36894.
Note You need to log in before you can comment on or make changes to this bug.