RESOLVED FIXED 29687
Web Inspector: Show HTTP protocol version and other Network Load Metrics (IP Address, Priority, Connection ID)
https://bugs.webkit.org/show_bug.cgi?id=29687
Summary Web Inspector: Show HTTP protocol version and other Network Load Metrics (IP ...
James Wheare
Reported 2009-09-23 10:38:25 PDT
I'd like to see the HTTP version in the HTTP Information inspector details as implemented in http://trac.webkit.org/changeset/48646 HTTP Version is useful info because it affects resource download pipelining behaviour. Brian Weinstein says (https://bugs.webkit.org/show_bug.cgi?id=19945#c25): > this data is not easy to get from either a ResourceResponse or a > ResourceRequest, so it would take some big changes, and we would need some > information that I don't know if we have an API to get.
Attachments
[PATCH] Proposed Fix (62.14 KB, patch)
2017-03-09 11:47 PST, Joseph Pecoraro
no flags
[IMAGE] New Datagrid Columns (502.25 KB, image/png)
2017-03-09 11:48 PST, Joseph Pecoraro
no flags
[IMAGE] Resources Details Sidebar (45.29 KB, image/png)
2017-03-09 14:13 PST, Joseph Pecoraro
no flags
[PATCH] Proposed Fix (69.97 KB, patch)
2017-03-09 14:13 PST, Joseph Pecoraro
no flags
[PATCH] Proposed Fix (69.49 KB, patch)
2017-03-09 14:17 PST, Joseph Pecoraro
mattbaker: review+
Brian Burg
Comment 1 2014-12-11 16:51:13 PST
Yeah, good luck getting that data. :)
Joseph Pecoraro
Comment 2 2014-12-11 16:55:12 PST
We absolutely want to ultimately show pipelining information in Web Inspector when we can get that information from the underlying network layer (different per-port). The next step is integrating the richer Network Timing information we have into Inspector.
Radar WebKit Bug Importer
Comment 3 2014-12-17 11:24:57 PST
Joseph Pecoraro
Comment 4 2017-03-09 11:41:29 PST
We included the protocol for Resource Timing with NetworkLoadMetrics. Exposing those and a few more metrics to Web Inspector.
Joseph Pecoraro
Comment 5 2017-03-09 11:47:49 PST
Created attachment 303943 [details] [PATCH] Proposed Fix
Joseph Pecoraro
Comment 6 2017-03-09 11:48:53 PST
Created attachment 303944 [details] [IMAGE] New Datagrid Columns
Joseph Pecoraro
Comment 7 2017-03-09 12:08:19 PST
Comment on attachment 303943 [details] [PATCH] Proposed Fix View in context: https://bugs.webkit.org/attachment.cgi?id=303943&action=review > Source/WebInspectorUI/UserInterface/Views/NetworkGridContentView.js:57 > columns.type.title = WebInspector.UIString("Type"); > - columns.type.width = "6%"; > + columns.type.width = "8%"; > > columns.method.title = WebInspector.UIString("Method"); > - columns.method.width = "5%"; > + columns.method.width = "6%"; > > columns.scheme.title = WebInspector.UIString("Scheme"); > - columns.scheme.width = "5%"; > + columns.scheme.width = "6%"; > > columns.statusCode.title = WebInspector.UIString("Status"); > - columns.statusCode.width = "5%"; > + columns.statusCode.width = "6%"; Errr, all of these numbers should not have changed. I'll change them back
Simon Fraser (smfr)
Comment 8 2017-03-09 12:10:01 PST
Do we also show it when I select a specific resource, and look at the right sidebar where we show the MIME type, Location etc? That's where I'd expect to see it.
Joseph Pecoraro
Comment 9 2017-03-09 12:53:47 PST
(In reply to comment #8) > Do we also show it when I select a specific resource, and look at the right > sidebar where we show the MIME type, Location etc? That's where I'd expect > to see it. We do not, I'll add that and put up another patch.
Joseph Pecoraro
Comment 10 2017-03-09 14:13:14 PST
Created attachment 303988 [details] [IMAGE] Resources Details Sidebar
Joseph Pecoraro
Comment 11 2017-03-09 14:13:34 PST
Created attachment 303989 [details] [PATCH] Proposed Fix
Joseph Pecoraro
Comment 12 2017-03-09 14:15:40 PST
Comment on attachment 303989 [details] [PATCH] Proposed Fix View in context: https://bugs.webkit.org/attachment.cgi?id=303989&action=review > Source/WebInspectorUI/UserInterface/Views/DataGrid.js:928 > + copy[columnIdentifier] = visible; This could be potentially improved so that if the new value is the default value we don't store anything for it. So something like: if (visible === !!originalColumnInfo.hidden) delete copy[columnIdentifier]; else copy[columnIdentifier] = visible; Let me know if you want me to try to move in that direction. I haven't checked if we have the "originalColumnInfo"
Joseph Pecoraro
Comment 13 2017-03-09 14:17:50 PST
Created attachment 303992 [details] [PATCH] Proposed Fix
Joseph Pecoraro
Comment 14 2017-03-09 14:18:11 PST
Comment on attachment 303992 [details] [PATCH] Proposed Fix View in context: https://bugs.webkit.org/attachment.cgi?id=303992&action=review > Source/WebInspectorUI/UserInterface/Views/DataGrid.js:928 > + copy[columnIdentifier] = visible; This could be potentially improved so that if the new value is the default value we don't store anything for it. So something like: if (visible === !!originalColumnInfo.hidden) delete copy[columnIdentifier]; else copy[columnIdentifier] = visible; Let me know if you want me to try to move in that direction. I haven't checked if we have the "originalColumnInfo"
Matt Baker
Comment 15 2017-03-09 14:26:18 PST
Comment on attachment 303992 [details] [PATCH] Proposed Fix View in context: https://bugs.webkit.org/attachment.cgi?id=303992&action=review >> Source/WebInspectorUI/UserInterface/Views/DataGrid.js:928 >> + copy[columnIdentifier] = visible; > > This could be potentially improved so that if the new value is the default value we don't store anything for it. So something like: > > if (visible === !!originalColumnInfo.hidden) > delete copy[columnIdentifier]; > else > copy[columnIdentifier] = visible; > > Let me know if you want me to try to move in that direction. I haven't checked if we have the "originalColumnInfo" I like it. Filed follow-up: Web Inspector: Improve storing of DataGrid column visibility https://bugs.webkit.org/show_bug.cgi?id=169444
Matt Baker
Comment 16 2017-03-09 14:34:51 PST
Comment on attachment 303992 [details] [PATCH] Proposed Fix Very nice! r=me. Although the SPI/networking changes are straightforward and appear correct, someone with more knowledge in that area should maybe have a look.
Blaze Burg
Comment 17 2017-03-09 15:04:29 PST
Comment on attachment 303992 [details] [PATCH] Proposed Fix r=me as well
Joseph Pecoraro
Comment 18 2017-03-09 15:44:57 PST
Joseph Pecoraro
Comment 19 2017-03-09 16:19:48 PST
Follow-up to avoid possible build issues regarding the SPI: <https://trac.webkit.org/changeset/213685> This workaround should be possible to remove shortly.
Note You need to log in before you can comment on or make changes to this bug.