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

Issue 2163183002: Fix PerformanceResourceTiming transferSize field for sync XHR (Closed)

Created:
4 years, 5 months ago by Adam Rice
Modified:
4 years, 4 months ago
CC:
chromium-reviews, tyoshino+watch_chromium.org, jam, dglazkov+blink, darin-cc_chromium.org, gavinp+loader_chromium.org, blink-reviews, loading-reviews+fetch_chromium.org, kinuko+watch, Nate Chapin, blink-reviews-api_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@resource_timing_sizes_worker_tests
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix PerformanceResourceTiming transferSize field for sync XHR Previously the transferSize field for synchronous XHR was only being set when devtools was open. Set it always. This CL also adds a layout test specifically for this case. BUG=629764 TBR=esprehn,hubbe Committed: https://crrev.com/c572809b49cae15c0697aa056990c9bf660a068f Cr-Commit-Position: refs/heads/master@{#408085}

Patch Set 1 #

Patch Set 2 : Fix compile of media_blink_unittests #

Patch Set 3 : Rebase #

Total comments: 2

Patch Set 4 : Fix comment #

Patch Set 5 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -29 lines) Patch
M content/child/resource_dispatcher.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/child/web_url_loader_impl.h View 1 chunk +5 lines, -5 lines 0 comments Download
M content/child/web_url_loader_impl.cc View 1 2 3 4 2 chunks +3 lines, -1 line 0 comments Download
M content/child/web_url_loader_impl_unittest.cc View 2 chunks +6 lines, -1 line 0 comments Download
M content/test/mock_weburlloader.h View 1 chunk +6 lines, -4 lines 0 comments Download
M media/blink/mock_weburlloader.h View 1 1 chunk +6 lines, -4 lines 0 comments Download
A + third_party/WebKit/LayoutTests/http/tests/misc/resource-timing-sizes-sync-xhr-transfer-size.html View 1 chunk +1 line, -1 line 0 comments Download
A + third_party/WebKit/LayoutTests/http/tests/misc/resource-timing-sizes-sync-xhr-transfer-size-worker.html View 1 chunk +2 lines, -1 line 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/misc/resources/resource-timing-sizes-sync-xhr-transfer-size.js View 1 2 3 1 chunk +34 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ResourceLoader.cpp View 2 chunks +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/testing/weburl_loader_mock.h View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/testing/weburl_loader_mock.cc View 1 chunk +6 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/testing/weburl_loader_mock_factory_impl.h View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/testing/weburl_loader_mock_factory_impl.cc View 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/AssociatedURLLoader.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/AssociatedURLLoader.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/public/platform/WebURLLoader.h View 2 chunks +3 lines, -1 line 0 comments Download

Messages

Total messages: 39 (28 generated)
Adam Rice
4 years, 5 months ago (2016-07-21 03:34:49 UTC) #12
Kunihiko Sakamoto
lgtm https://codereview.chromium.org/2163183002/diff/40001/third_party/WebKit/LayoutTests/http/tests/misc/resources/resource-timing-sizes-sync-xhr-transfer-size.js File third_party/WebKit/LayoutTests/http/tests/misc/resources/resource-timing-sizes-sync-xhr-transfer-size.js (right): https://codereview.chromium.org/2163183002/diff/40001/third_party/WebKit/LayoutTests/http/tests/misc/resources/resource-timing-sizes-sync-xhr-transfer-size.js#newcode1 third_party/WebKit/LayoutTests/http/tests/misc/resources/resource-timing-sizes-sync-xhr-transfer-size.js:1: // This test code is shared between resource-timing-sizes-redirect.html ...
4 years, 5 months ago (2016-07-21 04:05:43 UTC) #13
Adam Rice
https://codereview.chromium.org/2163183002/diff/40001/third_party/WebKit/LayoutTests/http/tests/misc/resources/resource-timing-sizes-sync-xhr-transfer-size.js File third_party/WebKit/LayoutTests/http/tests/misc/resources/resource-timing-sizes-sync-xhr-transfer-size.js (right): https://codereview.chromium.org/2163183002/diff/40001/third_party/WebKit/LayoutTests/http/tests/misc/resources/resource-timing-sizes-sync-xhr-transfer-size.js#newcode1 third_party/WebKit/LayoutTests/http/tests/misc/resources/resource-timing-sizes-sync-xhr-transfer-size.js:1: // This test code is shared between resource-timing-sizes-redirect.html and ...
4 years, 5 months ago (2016-07-21 04:13:52 UTC) #16
Adam Rice
4 years, 5 months ago (2016-07-21 05:37:20 UTC) #26
kinuko
lgtm
4 years, 5 months ago (2016-07-21 07:52:45 UTC) #27
Adam Rice
TBR esprehn for trivial changes in third_party/WebKit/Source/web/ TBR hubbe for trivial change to media/blink/mock_weburlloader.h
4 years, 4 months ago (2016-07-27 08:36:16 UTC) #30
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/2163183002/80001
4 years, 4 months ago (2016-07-27 08:36:47 UTC) #33
esprehn
I'd sort of rather we didn't fix this, sync xhr is deprecated and we said ...
4 years, 4 months ago (2016-07-27 08:49:55 UTC) #34
Adam Rice
On 2016/07/27 08:49:55, esprehn wrote: > I'd sort of rather we didn't fix this, sync ...
4 years, 4 months ago (2016-07-27 09:25:55 UTC) #35
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 4 months ago (2016-07-27 10:08:47 UTC) #37
commit-bot: I haz the power
4 years, 4 months ago (2016-07-27 10:10:31 UTC) #39
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/c572809b49cae15c0697aa056990c9bf660a068f
Cr-Commit-Position: refs/heads/master@{#408085}

Powered by Google App Engine
This is Rietveld 408576698