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

Unified Diff: content/child/resource_dispatcher.cc

Issue 2032653003: Limit foreign fetch to only intercept requests made from secure contexts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: properly initialize new ResourceRequest member Created 4 years, 6 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 | « content/child/request_extra_data.cc ('k') | content/common/resource_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/resource_dispatcher.cc
diff --git a/content/child/resource_dispatcher.cc b/content/child/resource_dispatcher.cc
index 05603a5140fc99172fa9a202350b3e4f1ad38016..3c662798d94c22d58468bc7dd0cd8d1be1f50f74 100644
--- a/content/child/resource_dispatcher.cc
+++ b/content/child/resource_dispatcher.cc
@@ -802,6 +802,8 @@ std::unique_ptr<ResourceRequest> ResourceDispatcher::CreateRequest(
request->lofi_state = extra_data->lofi_state();
request->request_body = request_body;
request->resource_body_stream_url = request_info.resource_body_stream_url;
+ request->initiated_in_secure_context =
+ extra_data->initiated_in_secure_context();
if (frame_origin)
*frame_origin = extra_data->frame_origin();
return request;
« no previous file with comments | « content/child/request_extra_data.cc ('k') | content/common/resource_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698