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

Issue 1976513002: Set the request mode and the credentials mode even if the request will not go to ServiceWorker. (Closed)

Created:
4 years, 7 months ago by horo
Modified:
4 years, 7 months ago
CC:
blink-reviews, chromium-reviews, gavinp+loader_chromium.org, Nate Chapin, loading-reviews_chromium.org, tyoshino+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Set the request mode and the credentials mode even if the request will not go to ServiceWorker. As mek@ mentioned in crbug.com/610400#c6, we should move the block in DTL::start that initializes the fetch request mode and fetch credentials mode of a request to outside the "is controlled by service worker" check. BUG=610400 Committed: https://crrev.com/90bec6d5c3d8220e4e3f1265c0913894c1f4fcd3 Cr-Commit-Position: refs/heads/master@{#394003}

Patch Set 1 #

Patch Set 2 : check skipServiceWorker() in SECURITY_CHECK() #

Total comments: 2

Patch Set 3 : fix test and update coment #

Total comments: 4

Patch Set 4 : update comment #

Total comments: 4

Patch Set 5 : introduce IsNoCORSAllowedContext #

Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -36 lines) Patch
M third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp View 1 2 3 4 2 chunks +49 lines, -32 lines 0 comments Download
M third_party/WebKit/Source/core/loader/ThreadableLoaderTest.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/AssociatedURLLoaderTest.cpp View 1 2 3 1 chunk +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/WebFrameTest.cpp View 1 2 2 chunks +4 lines, -2 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 26 (10 generated)
horo
tyoshino@ Could you please review this?
4 years, 7 months ago (2016-05-12 07:30:31 UTC) #3
Marijn Kruisselbrink
drive-by comment https://codereview.chromium.org/1976513002/diff/20001/third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp File third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp (right): https://codereview.chromium.org/1976513002/diff/20001/third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp#newcode208 third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp:208: // No-CORS requests are allowed only for ...
4 years, 7 months ago (2016-05-12 17:30:38 UTC) #4
horo
https://codereview.chromium.org/1976513002/diff/20001/third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp File third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp (right): https://codereview.chromium.org/1976513002/diff/20001/third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp#newcode208 third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp:208: // No-CORS requests are allowed only for those contexts ...
4 years, 7 months ago (2016-05-16 06:24:19 UTC) #5
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/1976513002/diff/40001/third_party/WebKit/Source/web/AssociatedURLLoaderTest.cpp File third_party/WebKit/Source/web/AssociatedURLLoaderTest.cpp (right): https://codereview.chromium.org/1976513002/diff/40001/third_party/WebKit/Source/web/AssociatedURLLoaderTest.cpp#newcode324 third_party/WebKit/Source/web/AssociatedURLLoaderTest.cpp:324: KURL url = toKURL("http://www.other.com/CrossOriginSuccess"); What's this change for? https://codereview.chromium.org/1976513002/diff/40001/third_party/WebKit/Source/web/AssociatedURLLoaderTest.cpp#newcode329 ...
4 years, 7 months ago (2016-05-16 07:12:42 UTC) #6
horo
https://codereview.chromium.org/1976513002/diff/40001/third_party/WebKit/Source/web/AssociatedURLLoaderTest.cpp File third_party/WebKit/Source/web/AssociatedURLLoaderTest.cpp (right): https://codereview.chromium.org/1976513002/diff/40001/third_party/WebKit/Source/web/AssociatedURLLoaderTest.cpp#newcode324 third_party/WebKit/Source/web/AssociatedURLLoaderTest.cpp:324: KURL url = toKURL("http://www.other.com/CrossOriginSuccess"); On 2016/05/16 07:12:42, tyoshino wrote: ...
4 years, 7 months ago (2016-05-16 07:23:15 UTC) #7
tyoshino (SeeGerritForStatus)
lgtm
4 years, 7 months ago (2016-05-16 09:47:08 UTC) #8
horo
kinuko@ Could you please review third_party/WebKit/Source/core/loader/*?
4 years, 7 months ago (2016-05-16 09:51:14 UTC) #10
kinuko
lgtm + nits https://codereview.chromium.org/1976513002/diff/60001/third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp File third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp (right): https://codereview.chromium.org/1976513002/diff/60001/third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp#newcode208 third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp:208: // No-CORS is allowed for all ...
4 years, 7 months ago (2016-05-16 09:59:16 UTC) #11
horo
Thank you. https://codereview.chromium.org/1976513002/diff/60001/third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp File third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp (right): https://codereview.chromium.org/1976513002/diff/60001/third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp#newcode208 third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp:208: // No-CORS is allowed for all these ...
4 years, 7 months ago (2016-05-16 10:14:34 UTC) #12
horo
haraken@ Could you please review third_party/WebKit/Source/web/AssociatedURLLoaderTest.cpp?
4 years, 7 months ago (2016-05-16 10:15:24 UTC) #14
haraken
On 2016/05/16 10:15:24, horo wrote: > haraken@ > Could you please review > third_party/WebKit/Source/web/AssociatedURLLoaderTest.cpp? LGTM
4 years, 7 months ago (2016-05-16 10:49:16 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1976513002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1976513002/80001
4 years, 7 months ago (2016-05-16 10:52:13 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/222237)
4 years, 7 months ago (2016-05-16 15:19:53 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1976513002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1976513002/80001
4 years, 7 months ago (2016-05-16 23:39:29 UTC) #22
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 7 months ago (2016-05-17 01:15:01 UTC) #24
commit-bot: I haz the power
4 years, 7 months ago (2016-05-17 01:16:19 UTC) #26
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/90bec6d5c3d8220e4e3f1265c0913894c1f4fcd3
Cr-Commit-Position: refs/heads/master@{#394003}

Powered by Google App Engine
This is Rietveld 408576698