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

Issue 1965013002: Implement headers attributes in ForeignFetchResponse (Closed)

Created:
4 years, 7 months ago by Marijn Kruisselbrink
Modified:
4 years, 7 months ago
CC:
blink-reviews, blink-reviews-api_chromium.org, blink-worker-reviews_chromium.org, chromium-reviews, darin-cc_chromium.org, dglazkov+blink, falken, gavinp+loader_chromium.org, haraken, horo+watch_chromium.org, jam, Nate Chapin, jkarlin+watch_chromium.org, jsbell+serviceworker_chromium.org, kenjibaheux+watch_chromium.org, kinuko+watch, kinuko+serviceworker, loading-reviews_chromium.org, michaeln, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, nhiroki, serviceworker-reviews, tyoshino+watch_chromium.org, tzik
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement headers attributes in ForeignFetchResponse This annotates all responses with a new "CORS-exposed header names list" as was added in the fetch spec in https://github.com/whatwg/fetch/commit/32411c753f46a10fd20d2ad3610244e7fdf44d4a This list is then used by foreign fetch to make it possible to expose a set of headers similar to what Access-Control-Expose-Headers does for CORS, as specified in step 16.12 of https://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html#on-foreign-fetch-request-algorithm BUG=540509 Committed: https://crrev.com/af479d1aea01a0559639a4168d5536447ebca643 Cr-Commit-Position: refs/heads/master@{#395667}

Patch Set 1 : #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : some cleanup #

Patch Set 5 : rebase #

Patch Set 6 : rebase and small cleanups #

Patch Set 7 : add more unit tests #

Patch Set 8 : rebase #

Total comments: 2

Patch Set 9 : using instead of typedef #

Unified diffs Side-by-side diffs Delta from patch set Stats (+450 lines, -152 lines) Patch
M content/browser/cache_storage/cache_storage.proto View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/cache_storage/cache_storage_cache.cc View 1 2 3 chunks +8 lines, -2 lines 0 comments Download
M content/browser/cache_storage/cache_storage_cache_unittest.cc View 1 2 3 5 chunks +22 lines, -14 lines 0 comments Download
M content/browser/cache_storage/cache_storage_manager_unittest.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/service_worker/embedded_worker_test_helper.cc View 1 2 1 chunk +7 lines, -6 lines 0 comments Download
M content/browser/service_worker/service_worker_response_info.h View 1 2 4 chunks +6 lines, -1 line 0 comments Download
M content/browser/service_worker/service_worker_response_info.cc View 1 2 4 chunks +7 lines, -1 line 0 comments Download
M content/browser/service_worker/service_worker_url_request_job.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_url_request_job.cc View 1 2 3 4 5 6 7 3 chunks +9 lines, -6 lines 0 comments Download
M content/browser/service_worker/service_worker_url_request_job_unittest.cc View 1 2 3 3 chunks +6 lines, -3 lines 0 comments Download
M content/child/web_url_loader_impl.cc View 1 2 3 4 5 6 7 1 chunk +7 lines, -0 lines 0 comments Download
M content/common/resource_messages.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M content/common/service_worker/service_worker_messages.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/common/service_worker/service_worker_types.h View 1 2 3 4 5 6 7 8 3 chunks +19 lines, -14 lines 0 comments Download
M content/common/service_worker/service_worker_types.cc View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M content/public/common/resource_response.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/resource_response_info.h View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M content/renderer/cache_storage/cache_storage_dispatcher.cc View 1 2 3 chunks +11 lines, -1 line 0 comments Download
M content/renderer/service_worker/service_worker_context_client.cc View 1 2 3 4 2 chunks +4 lines, -1 line 0 comments Download
M content/renderer/service_worker/service_worker_type_util.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M content/renderer/service_worker/service_worker_type_util.cc View 1 2 1 chunk +10 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/serviceworker/foreign-fetch-cors.html View 1 2 3 4 5 10 chunks +99 lines, -19 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/CrossOriginAccessControl.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/CrossOriginAccessControl.cpp View 1 2 3 4 1 chunk +15 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp View 1 2 3 4 5 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/FetchManager.cpp View 1 2 3 1 chunk +5 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/FetchResponseData.h View 1 2 3 4 5 5 chunks +10 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/FetchResponseData.cpp View 1 2 3 4 7 chunks +29 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/FetchResponseDataTest.cpp View 1 2 3 4 5 6 1 chunk +55 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/Response.cpp View 1 2 3 4 1 chunk +6 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/ForeignFetchRespondWithObserver.cpp View 1 2 3 4 2 chunks +17 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/exported/WebServiceWorkerResponse.cpp View 1 2 3 chunks +26 lines, -15 lines 0 comments Download
M third_party/WebKit/Source/platform/exported/WebURLResponse.cpp View 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/network/ResourceResponse.h View 1 2 3 4 2 chunks +10 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/AssociatedURLLoader.cpp View 1 2 3 2 chunks +22 lines, -53 lines 0 comments Download
M third_party/WebKit/public/platform/WebURLResponse.h View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download
M third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerResponse.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (15 generated)
Marijn Kruisselbrink
Feel free to ignore this one until after https://codereview.chromium.org/1969403004 as it builds on that anyway.
4 years, 7 months ago (2016-05-13 23:31:19 UTC) #9
Marijn Kruisselbrink
On 2016/05/13 at 23:31:19, Marijn Kruisselbrink wrote: > Feel free to ignore this one until ...
4 years, 7 months ago (2016-05-17 23:34:42 UTC) #10
horo
lgtm
4 years, 7 months ago (2016-05-19 02:24:37 UTC) #11
Marijn Kruisselbrink
+kinuko for the non-SW parts of content/ and WebKit/ that horo isn't an OWNER for ...
4 years, 7 months ago (2016-05-19 16:19:56 UTC) #13
Tom Sepez
Messages LGTM. https://codereview.chromium.org/1965013002/diff/220001/content/common/service_worker/service_worker_types.h File content/common/service_worker/service_worker_types.h (right): https://codereview.chromium.org/1965013002/diff/220001/content/common/service_worker/service_worker_types.h#newcode127 content/common/service_worker/service_worker_types.h:127: typedef std::vector<std::string> ServiceWorkerHeaderList; Nit: "using" preferred. Not ...
4 years, 7 months ago (2016-05-19 16:29:15 UTC) #14
Marijn Kruisselbrink
https://codereview.chromium.org/1965013002/diff/220001/content/common/service_worker/service_worker_types.h File content/common/service_worker/service_worker_types.h (right): https://codereview.chromium.org/1965013002/diff/220001/content/common/service_worker/service_worker_types.h#newcode127 content/common/service_worker/service_worker_types.h:127: typedef std::vector<std::string> ServiceWorkerHeaderList; On 2016/05/19 at 16:29:15, Tom Sepez ...
4 years, 7 months ago (2016-05-19 17:28:28 UTC) #15
kinuko
lgtm
4 years, 7 months ago (2016-05-20 16:23:14 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1965013002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1965013002/240001
4 years, 7 months ago (2016-05-20 16:25:47 UTC) #19
Marijn Kruisselbrink
+japhet for blink Source/web/AssociatedURLLoader.cpp OWNERS
4 years, 7 months ago (2016-05-20 16:30:59 UTC) #21
Marijn Kruisselbrink
On 2016/05/20 at 16:30:59, Marijn Kruisselbrink wrote: > +japhet for blink Source/web/AssociatedURLLoader.cpp OWNERS japhet: ping?
4 years, 7 months ago (2016-05-24 16:42:55 UTC) #23
Nate Chapin
Source/web/ LGTM
4 years, 7 months ago (2016-05-24 17:26:14 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1965013002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1965013002/240001
4 years, 7 months ago (2016-05-24 17:27:12 UTC) #26
commit-bot: I haz the power
Committed patchset #9 (id:240001)
4 years, 7 months ago (2016-05-24 19:10:12 UTC) #27
commit-bot: I haz the power
4 years, 7 months ago (2016-05-24 19:12:34 UTC) #29
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/af479d1aea01a0559639a4168d5536447ebca643
Cr-Commit-Position: refs/heads/master@{#395667}

Powered by Google App Engine
This is Rietveld 408576698