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

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

Issue 1391583002: Introduce "navigate" mode in Requests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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/RequestInit.cpp
diff --git a/third_party/WebKit/Source/modules/fetch/RequestInit.cpp b/third_party/WebKit/Source/modules/fetch/RequestInit.cpp
index 2e881f56c7a775a4c5a3580b9897ed09b8d17c24..98b3dea0e168604466591e3dfbf3ed795b65b326 100644
--- a/third_party/WebKit/Source/modules/fetch/RequestInit.cpp
+++ b/third_party/WebKit/Source/modules/fetch/RequestInit.cpp
@@ -23,10 +23,8 @@
namespace blink {
RequestInit::RequestInit(ExecutionContext* context, const Dictionary& options, ExceptionState& exceptionState)
- : isReferrerSet(false)
+ : areAnyMembersSet(false)
{
- bool areAnyMembersSet = false;
-
areAnyMembersSet = DictionaryHelper::get(options, "method", method) || areAnyMembersSet;
areAnyMembersSet = DictionaryHelper::get(options, "headers", headers) || areAnyMembersSet;
if (!headers) {
@@ -61,7 +59,6 @@ RequestInit::RequestInit(ExecutionContext* context, const Dictionary& options, E
referrer = Referrer("about:client", ReferrerPolicyDefault);
if (isReferrerStringSet)
referrer.referrer = referrerString;
- isReferrerSet = true;
}
if (!isBodySet || v8Body->IsUndefined() || v8Body->IsNull())
« no previous file with comments | « third_party/WebKit/Source/modules/fetch/RequestInit.h ('k') | third_party/WebKit/Source/modules/fetch/RequestTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698