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

Issue 2255383002: Allow a foreign fetch event handler to not handle an event. (Closed)

Created:
4 years, 4 months ago by Marijn Kruisselbrink
Modified:
4 years, 4 months ago
Reviewers:
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+watch, kinuko+serviceworker, michaeln, nhiroki, serviceworker-reviews, tzik
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Allow a foreign fetch event handler to not handle an event. Previously when a foreign fetch event handler decided not to handle an event that would be considered a failure, as bouncing the request back through the renderer (as would be necesary in the case of a cross origin request to a regular service worker's fetch event) doesn't work for foreign fetch. But since all the CORS logic is still in place for requests that are intercepted by foreign fetch (and in particular requests with preflights can't be intercepted by foreign fetch) it is always safe to fall back to the network directly rather than falling back to the renderer for foreign fetch requests. BUG=604084 Committed: https://crrev.com/976f647c1325d73b120e234289ee9d7ef0973767 Cr-Commit-Position: refs/heads/master@{#413525}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Remove comment from FallbackToNetworkOrRenderer #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -12 lines) Patch
M content/browser/service_worker/service_worker_url_request_job.cc View 1 3 chunks +8 lines, -9 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/serviceworker/foreign-fetch-basics.html View 1 chunk +14 lines, -3 lines 0 comments Download

Messages

Total messages: 20 (13 generated)
Marijn Kruisselbrink
4 years, 4 months ago (2016-08-18 23:15:33 UTC) #4
horo
lgtm with a nit. https://codereview.chromium.org/2255383002/diff/1/content/browser/service_worker/service_worker_url_request_job.cc File content/browser/service_worker/service_worker_url_request_job.cc (left): https://codereview.chromium.org/2255383002/diff/1/content/browser/service_worker/service_worker_url_request_job.cc#oldcode264 content/browser/service_worker/service_worker_url_request_job.cc:264: // TODO(shimazu): Remove the condition ...
4 years, 4 months ago (2016-08-21 07:42:24 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/2255383002/20001
4 years, 4 months ago (2016-08-22 16:52:41 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/266022)
4 years, 4 months ago (2016-08-22 19:13:08 UTC) #15
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/2255383002/20001
4 years, 4 months ago (2016-08-22 19:16:51 UTC) #17
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 4 months ago (2016-08-22 20:36:11 UTC) #18
commit-bot: I haz the power
4 years, 4 months ago (2016-08-22 20:38:31 UTC) #20
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/976f647c1325d73b120e234289ee9d7ef0973767
Cr-Commit-Position: refs/heads/master@{#413525}

Powered by Google App Engine
This is Rietveld 408576698