Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Issue 2167853003: [DevTools] Always report encodedDataLength in Network.ResponseReceived. (Closed)

Created:
4 years, 5 months ago by allada
Modified:
3 years, 7 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, pfeldman+blink_chromium.org, jam, Randy Smith (Not in Mondays), lushnikov+blink_chromium.org, blink-reviews, caseq+blink_chromium.org, darin-cc_chromium.org, pfeldman, devtools-reviews_chromium.org, loading-reviews_chromium.org, apavlov+blink_chromium.org, sergeyv+blink_chromium.org, kozyatinskiy+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[DevTools] Always report encodedDataLength in Network.ResponseReceived. Currently, we only send encodedDataLength for redirects. However, we already know how much we read when sending ResponseReceived. This will improve reporting for failed requests, as they don't get loadingFinished with full encodedDataLength. Previous CL: https://codereview.chromium.org/2101073002 BUG=622018 Committed: https://crrev.com/71b2efb2261233d22779f8ee192b81e7a942fe2b Cr-Commit-Position: refs/heads/master@{#417506}

Patch Set 1 : Fixed Header sizes in devtools #

Total comments: 10

Patch Set 2 : Fixed Header sizes in devtools #

Patch Set 3 : Fixed Header sizes in devtools #

Patch Set 4 : Merge remote-tracking branch 'origin/master' into HEADER_SIZE_FINAL #

Patch Set 5 : Quic Tests #

Total comments: 29

Patch Set 6 : Changes #

Total comments: 23

Patch Set 7 : Changes #

Patch Set 8 : Merge branch 'master' into HEADER_SIZE_FINAL #

Patch Set 9 : changes #

Total comments: 8

Patch Set 10 : changes #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+775 lines, -33 lines) Patch
M content/browser/loader/async_resource_handler.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/loader/async_resource_handler.cc View 1 2 3 4 5 6 7 2 chunks +5 lines, -0 lines 0 comments Download
M content/browser/loader/async_resource_handler_unittest.cc View 1 2 3 4 5 3 chunks +3 lines, -3 lines 0 comments Download
M net/quic/chromium/quic_network_transaction_unittest.cc View 1 2 3 4 5 6 7 3 chunks +162 lines, -2 lines 0 comments Download
M net/spdy/spdy_network_transaction_unittest.cc View 1 2 3 4 5 6 7 3 chunks +124 lines, -2 lines 0 comments Download
M net/spdy/spdy_test_util_common.cc View 1 2 3 4 5 6 7 8 4 chunks +44 lines, -0 lines 0 comments Download
M net/url_request/url_request.h View 1 2 3 4 5 6 7 2 chunks +7 lines, -1 line 0 comments Download
M net/url_request/url_request.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M net/url_request/url_request_http_job_unittest.cc View 1 2 3 4 5 6 2 chunks +126 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/conf/apache2-httpd-2.2.conf View 1 2 3 4 5 6 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/conf/apache2-httpd-2.4.conf View 1 2 3 4 5 6 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/conf/arch-httpd-2.4.conf View 1 2 3 4 5 6 2 chunks +4 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/conf/cygwin-httpd.conf View 1 2 3 4 5 6 2 chunks +4 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/conf/debian-httpd-2.2.conf View 1 2 3 4 5 6 2 chunks +4 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/conf/debian-httpd-2.4.conf View 1 2 3 4 5 6 2 chunks +4 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/conf/redhat-httpd-2.2.conf View 1 2 3 4 5 6 2 chunks +4 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/conf/redhat-httpd-2.4.conf View 1 2 3 4 5 6 2 chunks +4 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/conf/win-httpd.conf View 1 2 3 4 5 6 1 chunk +4 lines, -2 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/inspector-protocol/network-data-length.html View 1 2 3 4 5 6 7 8 9 1 chunk +136 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/inspector-protocol/network-data-length-expected.txt View 1 2 3 4 5 6 1 chunk +46 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/inspector-protocol/resources/data-xfer-resource.php View 1 2 3 4 5 6 1 chunk +73 lines, -0 lines 1 comment Download
M third_party/WebKit/LayoutTests/http/tests/inspector/network/network-datareceived.html View 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/NetworkResourcesData.h View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/NetworkResourcesData.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 79 (44 generated)
allada
mmenke@chromium.org: Please review changes in /content/ and /net/ dgozman@chromium.org: Please review changes in /inspector/ dpranke@chromium.org: ...
4 years, 5 months ago (2016-07-21 18:00:49 UTC) #8
mmenke
https://codereview.chromium.org/2167853003/diff/80001/content/browser/loader/async_resource_handler.cc File content/browser/loader/async_resource_handler.cc (right): https://codereview.chromium.org/2167853003/diff/80001/content/browser/loader/async_resource_handler.cc#newcode358 content/browser/loader/async_resource_handler.cc:358: response->head.encoded_data_length = request()->raw_header_size(); Hrm...I guess you can't use request()->GetTotalReceivedBytes() ...
4 years, 5 months ago (2016-07-21 18:10:50 UTC) #9
mmenke
https://codereview.chromium.org/2167853003/diff/80001/net/url_request/url_request.h File net/url_request/url_request.h (right): https://codereview.chromium.org/2167853003/diff/80001/net/url_request/url_request.h#newcode651 net/url_request/url_request.h:651: // Gets the raw header size of the request. ...
4 years, 5 months ago (2016-07-21 18:47:02 UTC) #10
Dirk Pranke
lgtm
4 years, 5 months ago (2016-07-21 20:40:12 UTC) #13
dgozman
https://codereview.chromium.org/2167853003/diff/80001/third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp File third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp (right): https://codereview.chromium.org/2167853003/diff/80001/third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp#newcode632 third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp:632: encodedDataLength -= resourceData->rawHeaderSize(); I don't like this. Let's fix ...
4 years, 5 months ago (2016-07-21 21:07:59 UTC) #14
allada
PTL https://codereview.chromium.org/2167853003/diff/80001/content/browser/loader/async_resource_handler.cc File content/browser/loader/async_resource_handler.cc (right): https://codereview.chromium.org/2167853003/diff/80001/content/browser/loader/async_resource_handler.cc#newcode358 content/browser/loader/async_resource_handler.cc:358: response->head.encoded_data_length = request()->raw_header_size(); On 2016/07/21 18:10:50, mmenke wrote: ...
4 years, 5 months ago (2016-07-22 17:19:33 UTC) #15
mmenke
https://codereview.chromium.org/2167853003/diff/80001/net/url_request/url_request.h File net/url_request/url_request.h (right): https://codereview.chromium.org/2167853003/diff/80001/net/url_request/url_request.h#newcode651 net/url_request/url_request.h:651: // Gets the raw header size of the request. ...
4 years, 5 months ago (2016-07-22 18:50:09 UTC) #16
mmenke
On 2016/07/22 18:50:09, mmenke wrote: > https://codereview.chromium.org/2167853003/diff/80001/net/url_request/url_request.h > File net/url_request/url_request.h (right): > > https://codereview.chromium.org/2167853003/diff/80001/net/url_request/url_request.h#newcode651 > ...
4 years, 5 months ago (2016-07-22 18:53:50 UTC) #17
mmenke
On 2016/07/22 18:53:50, mmenke wrote: > On 2016/07/22 18:50:09, mmenke wrote: > > > https://codereview.chromium.org/2167853003/diff/80001/net/url_request/url_request.h ...
4 years, 5 months ago (2016-07-22 18:55:11 UTC) #18
mmenke
On 2016/07/22 18:55:11, mmenke wrote: > On 2016/07/22 18:53:50, mmenke wrote: > > On 2016/07/22 ...
4 years, 5 months ago (2016-07-22 18:56:48 UTC) #19
allada
@mmenke, I may need some guidance on tests in netstack. I wrote a few sample ...
4 years, 3 months ago (2016-08-29 21:23:12 UTC) #20
mmenke
On 2016/08/29 21:23:12, Blaise wrote: > @mmenke, I may need some guidance on tests in ...
4 years, 3 months ago (2016-08-29 21:33:42 UTC) #21
allada
PTL @mmenke I did most of the tests you asked. I am not checking to ...
4 years, 3 months ago (2016-08-31 23:21:40 UTC) #24
mmenke
On 2016/08/31 23:21:40, Blaise wrote: > PTL @mmenke > > I did most of the ...
4 years, 3 months ago (2016-08-31 23:30:43 UTC) #25
allada
On 2016/08/31 23:30:43, mmenke wrote: > On 2016/08/31 23:21:40, Blaise wrote: > > PTL @mmenke ...
4 years, 3 months ago (2016-08-31 23:47:31 UTC) #26
allada
ricea@ can you please tell me if you see this causing any issues for you? ...
4 years, 3 months ago (2016-09-01 00:52:04 UTC) #32
Adam Rice
My layout tests for the PerformanceResourceTiming transferSize field pass, which is good. It implies that ...
4 years, 3 months ago (2016-09-01 08:57:28 UTC) #33
Adam Rice
On 2016/09/01 00:52:04, Blaise wrote: > ricea@ can you please tell me if you see ...
4 years, 3 months ago (2016-09-01 09:09:07 UTC) #34
mmenke
On 2016/09/01 09:09:07, Adam Rice wrote: > On 2016/09/01 00:52:04, Blaise wrote: > > ricea@ ...
4 years, 3 months ago (2016-09-01 16:59:41 UTC) #35
mmenke
[+rch]: Mind reviewing the H2/QUIC code. Basically we want to make sure URLRequest can grab ...
4 years, 3 months ago (2016-09-06 18:55:01 UTC) #37
Ryan Hamilton
I commented on the QUIC tests, but they apply to SPDY as well. https://codereview.chromium.org/2167853003/diff/200001/net/quic/chromium/quic_network_transaction_unittest.cc File ...
4 years, 3 months ago (2016-09-06 19:54:51 UTC) #38
allada
PTL ricea@, rch@, mmenke@ Concerning the content tests, the encoded data length and the data ...
4 years, 3 months ago (2016-09-07 06:01:12 UTC) #39
Adam Rice
https://codereview.chromium.org/2167853003/diff/200001/third_party/WebKit/LayoutTests/http/conf/apache2-httpd-2.2.conf File third_party/WebKit/LayoutTests/http/conf/apache2-httpd-2.2.conf (right): https://codereview.chromium.org/2167853003/diff/200001/third_party/WebKit/LayoutTests/http/conf/apache2-httpd-2.2.conf#newcode7 third_party/WebKit/LayoutTests/http/conf/apache2-httpd-2.2.conf:7: MaxKeepAliveRequests 999 On 2016/09/07 06:01:12, Blaise wrote: > On ...
4 years, 3 months ago (2016-09-07 06:35:52 UTC) #40
mmenke
https://codereview.chromium.org/2167853003/diff/200001/net/url_request/url_request_http_job_unittest.cc File net/url_request/url_request_http_job_unittest.cc (right): https://codereview.chromium.org/2167853003/diff/200001/net/url_request/url_request_http_job_unittest.cc#newcode375 net/url_request/url_request_http_job_unittest.cc:375: On 2016/09/07 06:01:12, Blaise wrote: > On 2016/09/06 18:55:00, ...
4 years, 3 months ago (2016-09-07 15:18:22 UTC) #41
Ryan Hamilton
looks good minus a few nits. https://codereview.chromium.org/2167853003/diff/220001/net/quic/chromium/quic_network_transaction_unittest.cc File net/quic/chromium/quic_network_transaction_unittest.cc (right): https://codereview.chromium.org/2167853003/diff/220001/net/quic/chromium/quic_network_transaction_unittest.cc#newcode2622 net/quic/chromium/quic_network_transaction_unittest.cc:2622: TestDelegate d; nit: ...
4 years, 3 months ago (2016-09-07 16:54:50 UTC) #42
allada
PTL ricea@ mmenke@ and rch@ https://codereview.chromium.org/2167853003/diff/200001/net/url_request/url_request_http_job_unittest.cc File net/url_request/url_request_http_job_unittest.cc (right): https://codereview.chromium.org/2167853003/diff/200001/net/url_request/url_request_http_job_unittest.cc#newcode375 net/url_request/url_request_http_job_unittest.cc:375: On 2016/09/07 15:18:21, mmenke ...
4 years, 3 months ago (2016-09-07 18:14:57 UTC) #43
Ryan Hamilton
lgtm https://codereview.chromium.org/2167853003/diff/220001/net/quic/chromium/quic_network_transaction_unittest.cc File net/quic/chromium/quic_network_transaction_unittest.cc (right): https://codereview.chromium.org/2167853003/diff/220001/net/quic/chromium/quic_network_transaction_unittest.cc#newcode2622 net/quic/chromium/quic_network_transaction_unittest.cc:2622: TestDelegate d; On 2016/09/07 18:14:57, Blaise wrote: > ...
4 years, 3 months ago (2016-09-07 18:39:40 UTC) #48
allada
On 2016/09/07 18:39:40, Ryan Hamilton wrote: > lgtm > > https://codereview.chromium.org/2167853003/diff/220001/net/quic/chromium/quic_network_transaction_unittest.cc > File net/quic/chromium/quic_network_transaction_unittest.cc (right): ...
4 years, 3 months ago (2016-09-07 19:01:37 UTC) #51
mmenke
net/ LGTM
4 years, 3 months ago (2016-09-08 17:55:58 UTC) #67
dgozman
lgtm https://codereview.chromium.org/2167853003/diff/330001/third_party/WebKit/LayoutTests/http/tests/inspector-protocol/network-data-length.html File third_party/WebKit/LayoutTests/http/tests/inspector-protocol/network-data-length.html (right): https://codereview.chromium.org/2167853003/diff/330001/third_party/WebKit/LayoutTests/http/tests/inspector-protocol/network-data-length.html#newcode106 third_party/WebKit/LayoutTests/http/tests/inspector-protocol/network-data-length.html:106: function sendRequest(url) { { on next line https://codereview.chromium.org/2167853003/diff/330001/third_party/WebKit/LayoutTests/http/tests/inspector-protocol/network-data-length.html#newcode112 ...
4 years, 3 months ago (2016-09-08 23:39:50 UTC) #70
allada
done. https://codereview.chromium.org/2167853003/diff/330001/third_party/WebKit/LayoutTests/http/tests/inspector-protocol/network-data-length.html File third_party/WebKit/LayoutTests/http/tests/inspector-protocol/network-data-length.html (right): https://codereview.chromium.org/2167853003/diff/330001/third_party/WebKit/LayoutTests/http/tests/inspector-protocol/network-data-length.html#newcode106 third_party/WebKit/LayoutTests/http/tests/inspector-protocol/network-data-length.html:106: function sendRequest(url) { On 2016/09/08 23:39:49, dgozman wrote: ...
4 years, 3 months ago (2016-09-09 00:17:23 UTC) #71
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2167853003/350001
4 years, 3 months ago (2016-09-09 00:19:08 UTC) #74
commit-bot: I haz the power
Committed patchset #10 (id:350001)
4 years, 3 months ago (2016-09-09 04:58:13 UTC) #75
commit-bot: I haz the power
Patchset 10 (id:??) landed as https://crrev.com/71b2efb2261233d22779f8ee192b81e7a942fe2b Cr-Commit-Position: refs/heads/master@{#417506}
4 years, 3 months ago (2016-09-09 05:00:04 UTC) #77
Nico
3 years, 7 months ago (2017-05-11 16:58:21 UTC) #79
Message was sent while issue was closed.
https://codereview.chromium.org/2167853003/diff/350001/third_party/WebKit/Lay...
File
third_party/WebKit/LayoutTests/http/tests/inspector-protocol/resources/data-xfer-resource.php
(right):

https://codereview.chromium.org/2167853003/diff/350001/third_party/WebKit/Lay...
third_party/WebKit/LayoutTests/http/tests/inspector-protocol/resources/data-xfer-resource.php:51:
$send_size = min($flish_size, $wait_size);
This is probably supposed to be flush_size, not flish_size (also 2 lines below).

Since things don't seem to explode without this, do you really need this code?

(I happened to look through apache error logs for something else and noticed

[Thu May 11 09:05:00.228761 2017] [:error] [pid 825] [client 127.0.0.1:35972]
PHP Notice:  Undefined variable: flish_size in
/b/s/w/ir/third_party/WebKit/LayoutTests/http/tests/inspector-protocol/resources/data-xfer-resource.php
on line 51, referer:
http://127.0.0.1:8000/inspector-protocol/network-data-length.html

)

Powered by Google App Engine
This is Rietveld 408576698