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

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

Created:
4 years, 5 months ago by dgozman
Modified:
4 years, 5 months ago
Reviewers:
allada, mmenke
CC:
chromium-reviews, caseq+blink_chromium.org, pfeldman+blink_chromium.org, jam, Randy Smith (Not in Mondays), lushnikov+blink_chromium.org, blink-reviews, darin-cc_chromium.org, 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. BUG=622018 Committed: https://crrev.com/00f8f6c17d27799700974e599d6003b7f376071c Cr-Commit-Position: refs/heads/master@{#402543}

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -4 lines) Patch
M content/browser/loader/async_resource_handler.cc View 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/loader/netlog_observer.cc View 1 chunk +1 line, -0 lines 1 comment Download
M third_party/WebKit/LayoutTests/http/tests/inspector/network/network-datareceived.html View 1 chunk +2 lines, -2 lines 2 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector/network/network-datareceived-expected.txt View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 14 (5 generated)
dgozman
Could you please take a look? https://codereview.chromium.org/2101073002/diff/1/content/browser/loader/netlog_observer.cc File content/browser/loader/netlog_observer.cc (right): https://codereview.chromium.org/2101073002/diff/1/content/browser/loader/netlog_observer.cc#newcode198 content/browser/loader/netlog_observer.cc:198: response->head.encoded_data_length = request->GetTotalReceivedBytes(); ...
4 years, 5 months ago (2016-06-27 23:02:43 UTC) #3
mmenke
https://codereview.chromium.org/2101073002/diff/1/third_party/WebKit/LayoutTests/http/tests/inspector/network/network-datareceived.html File third_party/WebKit/LayoutTests/http/tests/inspector/network/network-datareceived.html (right): https://codereview.chromium.org/2101073002/diff/1/third_party/WebKit/LayoutTests/http/tests/inspector/network/network-datareceived.html#newcode22 third_party/WebKit/LayoutTests/http/tests/inspector/network/network-datareceived.html:22: function responseReceived(requestId, frameId, loaderId, time, resourceType, response) Where to ...
4 years, 5 months ago (2016-06-28 13:42:58 UTC) #4
dgozman
https://codereview.chromium.org/2101073002/diff/1/third_party/WebKit/LayoutTests/http/tests/inspector/network/network-datareceived.html File third_party/WebKit/LayoutTests/http/tests/inspector/network/network-datareceived.html (right): https://codereview.chromium.org/2101073002/diff/1/third_party/WebKit/LayoutTests/http/tests/inspector/network/network-datareceived.html#newcode22 third_party/WebKit/LayoutTests/http/tests/inspector/network/network-datareceived.html:22: function responseReceived(requestId, frameId, loaderId, time, resourceType, response) On 2016/06/28 ...
4 years, 5 months ago (2016-06-28 14:03:08 UTC) #5
mmenke
On 2016/06/28 14:03:08, dgozman wrote: > https://codereview.chromium.org/2101073002/diff/1/third_party/WebKit/LayoutTests/http/tests/inspector/network/network-datareceived.html > File > third_party/WebKit/LayoutTests/http/tests/inspector/network/network-datareceived.html > (right): > > ...
4 years, 5 months ago (2016-06-28 14:04:04 UTC) #6
allada
lgtm lgtm
4 years, 5 months ago (2016-06-28 19:18:34 UTC) #7
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/2101073002/1
4 years, 5 months ago (2016-06-28 19:23:55 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 5 months ago (2016-06-28 21:16:27 UTC) #11
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/00f8f6c17d27799700974e599d6003b7f376071c Cr-Commit-Position: refs/heads/master@{#402543}
4 years, 5 months ago (2016-06-28 21:20:22 UTC) #13
dgozman
4 years, 5 months ago (2016-07-18 17:58:02 UTC) #14
Message was sent while issue was closed.
A revert of this CL (patchset #1 id:1) has been created in
https://codereview.chromium.org/2158073002/ by dgozman@chromium.org.

The reason for reverting is: Decided to try another approach, see discussion in
issue 622018.

Powered by Google App Engine
This is Rietveld 408576698