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

Unified Diff: third_party/WebKit/Source/modules/fetch/FetchRequestData.cpp

Issue 1844413006: Support ReferrerPolicy in Fetch API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@update-referrer-policy
Patch Set: Created 4 years, 8 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
Index: third_party/WebKit/Source/modules/fetch/FetchRequestData.cpp
diff --git a/third_party/WebKit/Source/modules/fetch/FetchRequestData.cpp b/third_party/WebKit/Source/modules/fetch/FetchRequestData.cpp
index eb72cc11b08dee8be67d136f1b83c126bfc09712..83ed19bc675025aa8a4846565649ac9df9eb2457 100644
--- a/third_party/WebKit/Source/modules/fetch/FetchRequestData.cpp
+++ b/third_party/WebKit/Source/modules/fetch/FetchRequestData.cpp
@@ -36,7 +36,7 @@ FetchRequestData* FetchRequestData::create(ExecutionContext* executionContext, c
if (webRequest.blobDataHandle())
request->setBuffer(new BodyStreamBuffer(FetchBlobDataConsumerHandle::create(executionContext, webRequest.blobDataHandle())));
request->setContext(webRequest.requestContext());
- request->setReferrer(Referrer(webRequest.referrerUrl().string(), ReferrerPolicyDefault));
+ request->setReferrer(Referrer(webRequest.referrerUrl().string(), static_cast<ReferrerPolicy>(webRequest.referrerPolicy())));
request->setMode(webRequest.mode());
request->setCredentials(webRequest.credentialsMode());
request->setRedirect(webRequest.redirectMode());

Powered by Google App Engine
This is Rietveld 408576698