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

Unified Diff: third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp

Issue 1964823002: Set SkipServiceWorker flag in DocumentThreadableLoader::loadActualRequest(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp
diff --git a/third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp b/third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp
index da915d21d032729966820a9096c2b0a6427a90c8..8502e4b3e5ee2aa623430bb3177ee2daf4678638 100644
--- a/third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp
+++ b/third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp
@@ -806,6 +806,12 @@ void DocumentThreadableLoader::loadActualRequest()
clearResource();
+ // Explicitly set the SkipServiceWorker flag here. Even if the page was not
+ // controlled by a SW when the preflight request was sent, a new SW may be
+ // controlling the page now by calling clients.claim(). We should not send
+ // the actual request to the SW. https://crbug.com/604583
+ actualRequest.setSkipServiceWorker(true);
tyoshino (SeeGerritForStatus) 2016/05/10 09:17:01 So, the approach is to have the series of requests
horo 2016/05/10 13:20:27 In the redirect case, the request is passed from W
tyoshino (SeeGerritForStatus) 2016/05/10 13:52:48 ok
+
loadRequest(actualRequest, actualOptions);
// |this| may be dead here in async mode.
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698