Forwarding POST body into renderer after a cross-site transfer.
After this CL, ResourceRequestBody from ResourceHostMsg_Request
will get sent after a cross-site transfer in FrameMsg_Navigate:
- ResourceDispatcherHostImpl::BeginRequest stores
ResourceHostMsg_Request::request_body into
ResourceRequestInfoImpl::body_
- NavigationResourceThrottle::WillStartRequest forwards
ResourceRequestInfoImpl::body_ into a call to
NavigationHandleImpl::WillStartRequest, where the body gets stored in
NavigationHandleImpl::resource_request_body_
- NavigationHandleImpl::WillRedirectRequest takes care to
reset the body if a redirect changed the method to a non-POST.
(see also
https://crbug.com/582211#c22).
- RenderFrameHostManager::OnCrossSiteResponse forwards
NavigationHandleImpl::resource_request_body_ into the call to
NavigatorImpl::RequestTransferURL. The body is used to set
the proper method on FrameNavigationEntry and used to populate
CommonNavigationParams.
BUG=
582211,
613004
CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation
Committed:
https://crrev.com/5aa2c3740801f1c148c85db6612c24be0a76b6fe
Cr-Commit-Position: refs/heads/master@{#397779}