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

Issue 1867293004: Set service worker response info data for foreign fetch intercepted fetches. (Closed)

Created:
4 years, 8 months ago by Marijn Kruisselbrink
Modified:
4 years, 8 months ago
Reviewers:
falken, mmenke, horo
CC:
blink-reviews, blink-worker-reviews_chromium.org, chromium-reviews, darin-cc_chromium.org, falken, horo+watch_chromium.org, jam, jsbell+serviceworker_chromium.org, kenjibaheux+watch_chromium.org, kinuko+serviceworker, kinuko+watch, loading-reviews_chromium.org, michaeln, nhiroki, serviceworker-reviews, tzik
Base URL:
https://chromium.googlesource.com/chromium/src.git@ff-check-origin
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Set service worker response info data for foreign fetch intercepted fetches. Without this response info data for foreign fetch requests blink doesn't know to skip CORS checks for foreign fetch requests (any CORS related checks have already been done at the point of the foreign fetch handler). This refactors the way service worker specific response data is associated with a response by moving it out of ServiceWorkerRequestHandler, and instead storing it in a separate ServiceWorkerResponseInfo class. The data there is updated directly by ServiceWorkerURLRequestJob. BUG=540509 Committed: https://crrev.com/32db1b33e904f50b57d57612ba47b7f4b43f680d Cr-Commit-Position: refs/heads/master@{#388914}

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : address comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+390 lines, -384 lines) Patch
M content/browser/loader/resource_loader.cc View 1 2 2 chunks +5 lines, -4 lines 0 comments Download
M content/browser/service_worker/foreign_fetch_request_handler.h View 1 chunk +1 line, -11 lines 0 comments Download
M content/browser/service_worker/foreign_fetch_request_handler.cc View 3 chunks +3 lines, -13 lines 0 comments Download
M content/browser/service_worker/service_worker_context_request_handler.h View 1 chunk +0 lines, -2 lines 0 comments Download
M content/browser/service_worker/service_worker_context_request_handler.cc View 1 chunk +0 lines, -9 lines 0 comments Download
M content/browser/service_worker/service_worker_controllee_request_handler.h View 3 chunks +1 line, -26 lines 0 comments Download
M content/browser/service_worker/service_worker_controllee_request_handler.cc View 6 chunks +3 lines, -58 lines 0 comments Download
M content/browser/service_worker/service_worker_request_handler.h View 2 chunks +0 lines, -4 lines 0 comments Download
A content/browser/service_worker/service_worker_response_info.h View 1 2 1 chunk +81 lines, -0 lines 0 comments Download
A content/browser/service_worker/service_worker_response_info.cc View 1 2 1 chunk +101 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_url_request_job.h View 1 chunk +1 line, -15 lines 0 comments Download
M content/browser/service_worker/service_worker_url_request_job.cc View 3 chunks +24 lines, -16 lines 0 comments Download
M content/browser/service_worker/service_worker_url_request_job_unittest.cc View 17 chunks +132 lines, -222 lines 0 comments Download
M content/content_browser.gypi View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/serviceworker/foreign-fetch-basics.html View 1 2 1 chunk +29 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/foreign-fetch-worker.js View 1 1 chunk +7 lines, -4 lines 0 comments Download

Messages

Total messages: 25 (12 generated)
Marijn Kruisselbrink
Not sure if abstracting the SW specific response info data like this is really the ...
4 years, 8 months ago (2016-04-19 00:00:28 UTC) #6
falken
Factoring out common code into a new class makes sense to me. I'd like horo@ ...
4 years, 8 months ago (2016-04-19 01:38:16 UTC) #8
horo
lgtm I think this refactoring sounds reasonable.
4 years, 8 months ago (2016-04-19 11:07:05 UTC) #9
Marijn Kruisselbrink
+mmenke for content/browser/loader/resource_loader.cc OWNERS
4 years, 8 months ago (2016-04-19 17:46:55 UTC) #11
Marijn Kruisselbrink
On 2016/04/19 at 17:46:55, Marijn Kruisselbrink wrote: > +mmenke for content/browser/loader/resource_loader.cc OWNERS mmenke: ping?
4 years, 8 months ago (2016-04-21 18:21:57 UTC) #12
mmenke
On 2016/04/21 18:21:57, Marijn Kruisselbrink wrote: > On 2016/04/19 at 17:46:55, Marijn Kruisselbrink wrote: > ...
4 years, 8 months ago (2016-04-21 18:28:46 UTC) #13
mmenke
loader/ LGTM https://codereview.chromium.org/1867293004/diff/60001/content/browser/loader/resource_loader.cc File content/browser/loader/resource_loader.cc (right): https://codereview.chromium.org/1867293004/diff/60001/content/browser/loader/resource_loader.cc#newcode107 content/browser/loader/resource_loader.cc:107: if (ServiceWorkerResponseInfo* service_worker_info = Please move declaration ...
4 years, 8 months ago (2016-04-21 18:30:31 UTC) #14
Marijn Kruisselbrink
https://codereview.chromium.org/1867293004/diff/60001/content/browser/loader/resource_loader.cc File content/browser/loader/resource_loader.cc (right): https://codereview.chromium.org/1867293004/diff/60001/content/browser/loader/resource_loader.cc#newcode107 content/browser/loader/resource_loader.cc:107: if (ServiceWorkerResponseInfo* service_worker_info = On 2016/04/21 at 18:30:31, mmenke ...
4 years, 8 months ago (2016-04-21 19:20:45 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1867293004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1867293004/80001
4 years, 8 months ago (2016-04-21 19:21:40 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/209236)
4 years, 8 months ago (2016-04-21 20:36:39 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1867293004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1867293004/80001
4 years, 8 months ago (2016-04-21 20:39:26 UTC) #22
commit-bot: I haz the power
Committed patchset #3 (id:80001)
4 years, 8 months ago (2016-04-21 21:58:19 UTC) #23
commit-bot: I haz the power
4 years, 8 months ago (2016-04-22 19:40:09 UTC) #25
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/32db1b33e904f50b57d57612ba47b7f4b43f680d
Cr-Commit-Position: refs/heads/master@{#388914}

Powered by Google App Engine
This is Rietveld 408576698