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

Unified Diff: content/browser/loader/resource_dispatcher_host_impl.cc

Issue 1956383003: Forwarding POST body into renderer after a cross-site transfer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Attempting to rebase on top of clamy@'s other CL. Created 4 years, 7 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: content/browser/loader/resource_dispatcher_host_impl.cc
diff --git a/content/browser/loader/resource_dispatcher_host_impl.cc b/content/browser/loader/resource_dispatcher_host_impl.cc
index c3392079e77a924e4fca903943b8d2c352987236..99dfd0874cda60690f03b67e26a30c7a80c2fe67 100644
--- a/content/browser/loader/resource_dispatcher_host_impl.cc
+++ b/content/browser/loader/resource_dispatcher_host_impl.cc
@@ -1580,7 +1580,8 @@ void ResourceDispatcherHostImpl::BeginRequest(
IsUsingLoFi(request_data.lofi_state, delegate_, *new_request,
resource_context,
request_data.resource_type == RESOURCE_TYPE_MAIN_FRAME),
- support_async_revalidation ? request_data.headers : std::string());
+ support_async_revalidation ? request_data.headers : std::string(),
+ request_data.request_body);
// Request takes ownership.
extra_info->AssociateWithRequest(new_request.get());
@@ -1858,8 +1859,8 @@ ResourceRequestInfoImpl* ResourceDispatcherHostImpl::CreateRequestInfo(
0,
request_id_,
render_frame_route_id,
- false, // is_main_frame
- false, // parent_is_main_frame
+ false, // is_main_frame
+ false, // parent_is_main_frame
RESOURCE_TYPE_SUB_RESOURCE,
ui::PAGE_TRANSITION_LINK,
false, // should_replace_current_entry
@@ -1877,7 +1878,8 @@ ResourceRequestInfoImpl* ResourceDispatcherHostImpl::CreateRequestInfo(
false, // report_raw_headers
true, // is_async
false, // is_using_lofi
- std::string()); // original_headers
+ std::string(), // original_headers
+ nullptr); // body
}
void ResourceDispatcherHostImpl::OnRenderFrameDeleted(
@@ -2306,7 +2308,8 @@ void ResourceDispatcherHostImpl::BeginNavigationRequest(
// here.
// TODO(ricea): Make the feature work with stale-while-revalidate
// and clean this up.
- std::string()); // original_headers
+ std::string(), // original_headers
+ info.request_body);
// Request takes ownership.
extra_info->AssociateWithRequest(new_request.get());

Powered by Google App Engine
This is Rietveld 408576698