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 2d7512b63ae834050f1393383a7b88a9a5eedd4e..56c9ebcee16b48281ab438da0b98d10cf883f67b 100644 |
--- a/content/browser/loader/resource_dispatcher_host_impl.cc |
+++ b/content/browser/loader/resource_dispatcher_host_impl.cc |
@@ -1239,6 +1239,7 @@ void ResourceDispatcherHostImpl::BeginRequest( |
new_request->set_method(request_data.method); |
new_request->set_first_party_for_cookies( |
request_data.first_party_for_cookies); |
+ new_request->set_initiator(request_data.request_initiator); |
// If the request is a MAIN_FRAME request, the first-party URL gets updated on |
// redirects. |
@@ -2009,6 +2010,7 @@ void ResourceDispatcherHostImpl::BeginNavigationRequest( |
new_request->set_method(info.begin_params.method); |
new_request->set_first_party_for_cookies( |
info.first_party_for_cookies); |
+ new_request->set_initiator(info.request_initiator); |
if (info.is_main_frame) { |
new_request->set_first_party_url_policy( |
net::URLRequest::UPDATE_FIRST_PARTY_URL_ON_REDIRECT); |