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

Issue 2582833002: Fix foreign fetch intercepting CORS preflighted requests if preflight was in cache. (Closed)

Created:
4 years ago by Marijn Kruisselbrink
Modified:
4 years ago
Reviewers:
falken, yhirano
CC:
blink-reviews, chromium-reviews, falken+watch_chromium.org, gavinp+loader_chromium.org, horo+watch_chromium.org, Nate Chapin, jsbell+serviceworker_chromium.org, kenjibaheux+watch_chromium.org, kinuko+serviceworker, loading-reviews_chromium.org, michaeln, nhiroki, serviceworker-reviews, shimazu+serviceworker_chromium.org, tyoshino+watch_chromium.org, tzik
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix foreign fetch intercepting CORS preflighted requests if preflight was in cache. This moves setting of the skip service worker flag on CORS preflighted requests to happen earlier so that even non-simple requests for which we don't end up sending a preflight request still skip any service workers. BUG=674370 Committed: https://crrev.com/6c2c67d53758fdae01937ae43b8e5a30ff9854ea Cr-Commit-Position: refs/heads/master@{#439863}

Patch Set 1 #

Total comments: 8

Patch Set 2 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -6 lines) Patch
M third_party/WebKit/LayoutTests/http/tests/serviceworker/foreign-fetch-basics.html View 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp View 1 2 chunks +10 lines, -6 lines 0 comments Download

Messages

Total messages: 22 (15 generated)
Marijn Kruisselbrink
4 years ago (2016-12-16 20:37:25 UTC) #5
falken
Sorry I somehow missed this yesterday. sw lgtm (but actually non-owner for these files) https://codereview.chromium.org/2582833002/diff/1/third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp ...
4 years ago (2016-12-20 05:27:42 UTC) #8
yhirano
lgtm https://codereview.chromium.org/2582833002/diff/1/third_party/WebKit/LayoutTests/http/tests/serviceworker/foreign-fetch-basics.html File third_party/WebKit/LayoutTests/http/tests/serviceworker/foreign-fetch-basics.html (right): https://codereview.chromium.org/2582833002/diff/1/third_party/WebKit/LayoutTests/http/tests/serviceworker/foreign-fetch-basics.html#newcode241 third_party/WebKit/LayoutTests/http/tests/serviceworker/foreign-fetch-basics.html:241: .then(() => fetch(remote_url, {method: 'SPECIAL'})) Isn't it better ...
4 years ago (2016-12-20 07:42:26 UTC) #9
Marijn Kruisselbrink
https://codereview.chromium.org/2582833002/diff/1/third_party/WebKit/LayoutTests/http/tests/serviceworker/foreign-fetch-basics.html File third_party/WebKit/LayoutTests/http/tests/serviceworker/foreign-fetch-basics.html (right): https://codereview.chromium.org/2582833002/diff/1/third_party/WebKit/LayoutTests/http/tests/serviceworker/foreign-fetch-basics.html#newcode241 third_party/WebKit/LayoutTests/http/tests/serviceworker/foreign-fetch-basics.html:241: .then(() => fetch(remote_url, {method: 'SPECIAL'})) On 2016/12/20 at 07:42:26, ...
4 years ago (2016-12-20 17:28:29 UTC) #11
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/2582833002/20001
4 years ago (2016-12-20 19:02:24 UTC) #17
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years ago (2016-12-20 19:09:52 UTC) #20
commit-bot: I haz the power
4 years ago (2016-12-20 19:11:50 UTC) #22
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/6c2c67d53758fdae01937ae43b8e5a30ff9854ea
Cr-Commit-Position: refs/heads/master@{#439863}

Powered by Google App Engine
This is Rietveld 408576698