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

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

Issue 2828293002: Copy the {credentials,cache,redirect,} modes for Fetch Requests (Closed)
Patch Set: Created 3 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/fetch/RequestTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/fetch/Request.cpp
diff --git a/third_party/WebKit/Source/modules/fetch/Request.cpp b/third_party/WebKit/Source/modules/fetch/Request.cpp
index 0b1ebcc6fa37cac4b449ffe524d12e4b3a79890e..2bab113355c17f0416d495163afc0227885f74f5 100644
--- a/third_party/WebKit/Source/modules/fetch/Request.cpp
+++ b/third_party/WebKit/Source/modules/fetch/Request.cpp
@@ -722,6 +722,10 @@ bool Request::HasBody() const {
void Request::PopulateWebServiceWorkerRequest(
WebServiceWorkerRequest& web_request) const {
web_request.SetMethod(method());
+ web_request.SetMode(request_->Mode());
+ web_request.SetCredentialsMode(request_->Credentials());
+ web_request.SetCacheMode(request_->CacheMode());
+ web_request.SetRedirectMode(request_->Redirect());
web_request.SetRequestContext(request_->Context());
// Strip off the fragment part of URL. So far, all users of
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/fetch/RequestTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698