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

Unified Diff: third_party/WebKit/Source/core/loader/PingLoader.cpp

Issue 2555713002: Don't use FetchRequest in FrameFetchContext (Closed)
Patch Set: a Created 3 years, 11 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/core/loader/PingLoader.cpp
diff --git a/third_party/WebKit/Source/core/loader/PingLoader.cpp b/third_party/WebKit/Source/core/loader/PingLoader.cpp
index 5e597c1f61d60f62421c672c0715be6baab01c4a..ceaec4b00cf41083e5856bf88ef25bbc19c7738c 100644
--- a/third_party/WebKit/Source/core/loader/PingLoader.cpp
+++ b/third_party/WebKit/Source/core/loader/PingLoader.cpp
@@ -405,7 +405,8 @@ void finishPingRequestInitialization(
request.setRequestContext(requestContext);
FetchContext& fetchContext = frame->document()->fetcher()->context();
fetchContext.addAdditionalRequestHeaders(request, FetchSubresource);
- fetchContext.populateRequestData(request);
+ // TODO(tyoshino): Call populateResourceRequest() if appropriate.
+ fetchContext.setFirstPartyCookieAndRequestorOrigin(request);
}
bool sendPingCommon(LocalFrame* frame,

Powered by Google App Engine
This is Rietveld 408576698