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

Issue 1964823002: Set SkipServiceWorker flag in DocumentThreadableLoader::loadActualRequest(). (Closed)

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

Description

Set SkipServiceWorker flag in DocumentThreadableLoader::loadActualRequest(). Before a SW controls the page, when the DTL sends a CORS preflight request, the SkipServiceWorker flag is set by RenderFrameImpl::willSendRequest(). But a new SW may be controlling the page when the DTL sends the actual request by calling clients.claim(). In such case, the request goes to the SW and causes several problems. To avoid this problem, this cl set the flag in DTL::loadActualRequest(). BUG=604583, 610400 Committed: https://crrev.com/01fb3c2cf2bf84391c488f3a3dd5ef8c59cc0a51 Cr-Commit-Position: refs/heads/master@{#392609}

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -0 lines) Patch
M third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp View 1 chunk +6 lines, -0 lines 3 comments Download

Messages

Total messages: 18 (6 generated)
horo
tyoshino@ Could you please review this?
4 years, 7 months ago (2016-05-10 07:17:05 UTC) #3
horo
4 years, 7 months ago (2016-05-10 07:18:01 UTC) #4
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/1964823002/diff/1/third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp File third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp (right): https://codereview.chromium.org/1964823002/diff/1/third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp#newcode813 third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp:813: actualRequest.setSkipServiceWorker(true); So, the approach is to have the series ...
4 years, 7 months ago (2016-05-10 09:17:02 UTC) #5
horo
https://codereview.chromium.org/1964823002/diff/1/third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp File third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp (right): https://codereview.chromium.org/1964823002/diff/1/third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp#newcode813 third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp:813: actualRequest.setSkipServiceWorker(true); On 2016/05/10 09:17:01, tyoshino wrote: > So, the ...
4 years, 7 months ago (2016-05-10 13:20:27 UTC) #6
tyoshino (SeeGerritForStatus)
lgtm https://codereview.chromium.org/1964823002/diff/1/third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp File third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp (right): https://codereview.chromium.org/1964823002/diff/1/third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp#newcode813 third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp:813: actualRequest.setSkipServiceWorker(true); On 2016/05/10 13:20:27, horo wrote: > On ...
4 years, 7 months ago (2016-05-10 13:52:48 UTC) #7
horo
kouhei@ Could you please review this?
4 years, 7 months ago (2016-05-10 14:00:03 UTC) #9
kinuko
drive-by lgtm
4 years, 7 months ago (2016-05-10 14:11:19 UTC) #10
horo
Thank you.
4 years, 7 months ago (2016-05-10 14:23:16 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1964823002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1964823002/1
4 years, 7 months ago (2016-05-10 14:23:30 UTC) #13
kouhei (in TOK)
On 2016/05/10 14:00:03, horo wrote: > kouhei@ > Could you please review this? lgtm
4 years, 7 months ago (2016-05-10 14:29:30 UTC) #14
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 7 months ago (2016-05-10 15:20:08 UTC) #16
commit-bot: I haz the power
4 years, 7 months ago (2016-05-10 15:22:22 UTC) #18
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/01fb3c2cf2bf84391c488f3a3dd5ef8c59cc0a51
Cr-Commit-Position: refs/heads/master@{#392609}

Powered by Google App Engine
This is Rietveld 408576698