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

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

Issue 1060033002: Implement Request.context for Fetch API (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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: Source/modules/fetch/FetchRequestData.cpp
diff --git a/Source/modules/fetch/FetchRequestData.cpp b/Source/modules/fetch/FetchRequestData.cpp
index 5a1a8ec05ced62e3a22d8f484112cd40ee35d95d..94178f8d14c833dfb120e873553321ce7c371ef6 100644
--- a/Source/modules/fetch/FetchRequestData.cpp
+++ b/Source/modules/fetch/FetchRequestData.cpp
@@ -28,6 +28,7 @@ FetchRequestData* FetchRequestData::create(const WebServiceWorkerRequest& webReq
for (HTTPHeaderMap::const_iterator it = webRequest.headers().begin(); it != webRequest.headers().end(); ++it)
request->m_headerList->append(it->key, it->value);
request->m_blobDataHandle = webRequest.blobDataHandle();
+ request->setContext(webRequest.requestContext());
request->m_referrer.setURL(webRequest.referrer());
request->setMode(webRequest.mode());
request->setCredentials(webRequest.credentialsMode());

Powered by Google App Engine
This is Rietveld 408576698