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

Unified Diff: third_party/WebKit/Source/platform/network/ResourceRequest.cpp

Issue 1762893002: Reland of Set the request mode and the credentials mode of FetchEvent in the service worker correct… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: incorporated tyoshino's comment Created 4 years, 9 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 | « third_party/WebKit/Source/modules/fetch/FetchManager.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/network/ResourceRequest.cpp
diff --git a/third_party/WebKit/Source/platform/network/ResourceRequest.cpp b/third_party/WebKit/Source/platform/network/ResourceRequest.cpp
index 045c964981ffa2d5eb36072e3fc2296183b65a27..23a3ba072ff37d6b99b7a5a44f871cef7eef87ae 100644
--- a/third_party/WebKit/Source/platform/network/ResourceRequest.cpp
+++ b/third_party/WebKit/Source/platform/network/ResourceRequest.cpp
@@ -453,10 +453,7 @@ void ResourceRequest::initialize(const KURL& url)
m_requestContext = WebURLRequest::RequestContextUnspecified;
m_frameType = WebURLRequest::FrameTypeNone;
m_fetchRequestMode = WebURLRequest::FetchRequestModeNoCORS;
- // Contrary to the Fetch spec, we default to same-origin mode here, and deal
- // with CORS modes in updateRequestForAccessControl if we're called in a
- // context which requires it.
- m_fetchCredentialsMode = WebURLRequest::FetchCredentialsModeSameOrigin;
+ m_fetchCredentialsMode = WebURLRequest::FetchCredentialsModeInclude;
m_fetchRedirectMode = WebURLRequest::FetchRedirectModeFollow;
m_referrerPolicy = ReferrerPolicyDefault;
m_loFiState = WebURLRequest::LoFiUnspecified;
« no previous file with comments | « third_party/WebKit/Source/modules/fetch/FetchManager.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698