Bug 114316 - InspectorConsoleAgent::didFinishXHRLoading ConsoleMessage should include a column number
Summary: InspectorConsoleAgent::didFinishXHRLoading ConsoleMessage should include a co...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Joseph Pecoraro
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2013-04-09 16:08 PDT by Joseph Pecoraro
Modified: 2013-11-08 11:43 PST (History)
12 users (show)

See Also:


Attachments
Patch (8.09 KB, patch)
2013-11-07 00:50 PST, László Langó
no flags Details | Formatted Diff | Diff
Patch (12.61 KB, patch)
2013-11-07 01:19 PST, László Langó
no flags Details | Formatted Diff | Diff
Patch (13.09 KB, patch)
2013-11-08 00:38 PST, László Langó
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph Pecoraro 2013-04-09 16:08:50 PDT
InspectorConsoleAgent::didFinishXHRLoading creates a ConsoleMessage with a line number, but it should also include a column number. It looks like ultimately the line number comes from JSXMLHttpRequest::send, it should also be possible to get the column number at the time. The column number would be needed by the Web Inspector to jump to the proper place in source code to show where the XHR originated from.
Comment 1 Radar WebKit Bug Importer 2013-04-09 16:09:08 PDT
<rdar://problem/13614521>
Comment 2 László Langó 2013-11-07 00:50:38 PST
Created attachment 216271 [details]
Patch
Comment 3 Build Bot 2013-11-07 00:53:29 PST
Comment on attachment 216271 [details]
Patch

Attachment 216271 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.appspot.com/results/22718143
Comment 4 EFL EWS Bot 2013-11-07 00:56:05 PST
Comment on attachment 216271 [details]
Patch

Attachment 216271 [details] did not pass efl-ews (efl):
Output: http://webkit-queues.appspot.com/results/22768126
Comment 5 EFL EWS Bot 2013-11-07 00:57:23 PST
Comment on attachment 216271 [details]
Patch

Attachment 216271 [details] did not pass efl-wk2-ews (efl-wk2):
Output: http://webkit-queues.appspot.com/results/22698160
Comment 6 kov's GTK+ EWS bot 2013-11-07 01:08:36 PST
Comment on attachment 216271 [details]
Patch

Attachment 216271 [details] did not pass gtk-ews (gtk):
Output: http://webkit-queues.appspot.com/results/22368135
Comment 7 Build Bot 2013-11-07 01:13:42 PST
Comment on attachment 216271 [details]
Patch

Attachment 216271 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.appspot.com/results/22728154
Comment 8 László Langó 2013-11-07 01:19:10 PST
Created attachment 216274 [details]
Patch
Comment 9 WebKit Commit Bot 2013-11-07 09:34:28 PST
Comment on attachment 216274 [details]
Patch

Rejecting attachment 216274 [details] from commit-queue.

Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.appspot.com', '--bot-id=webkit-cq-03', 'validate-changelog', '--check-oops', '--non-interactive', 216274, '--port=mac']" exit_code: 1 cwd: /Volumes/Data/EWS/WebKit

ChangeLog entry in Source/WebCore/ChangeLog contains OOPS!.

Full output: http://webkit-queues.appspot.com/results/22588219
Comment 10 Timothy Hatcher 2013-11-07 09:35:47 PST
Oh, it wasn't the reviewer OOPS. It was the tests OOPS.
Comment 11 Joseph Pecoraro 2013-11-07 10:21:27 PST
Comment on attachment 216274 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=216274&action=review

> Source/WebCore/xml/XMLHttpRequest.h:141
>      void setLastSendLineNumber(unsigned lineNumber) { m_lastSendLineNumber = lineNumber; }
> +    void setLastSendColumnNumber(unsigned columnNumber) { m_lastSendColumnNumber = columnNumber; }

This could probably be: setLastSendLineAndColumnNumber(…). Making it two separate setters leaves the possibility that someone might do one and forgot to do the other. However, that is just a nit, the patch looks good!
Comment 12 László Langó 2013-11-08 00:38:58 PST
Created attachment 216364 [details]
Patch
Comment 13 WebKit Commit Bot 2013-11-08 11:43:41 PST
Comment on attachment 216364 [details]
Patch

Clearing flags on attachment: 216364

Committed r158935: <http://trac.webkit.org/changeset/158935>
Comment 14 WebKit Commit Bot 2013-11-08 11:43:44 PST
All reviewed patches have been landed.  Closing bug.