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

Unified Diff: content/browser/frame_host/render_frame_host_manager.cc

Issue 2355023002: Preserving Content-Type header from http request in OpenURL path. (Closed)
Patch Set: Rebasing... Created 4 years, 3 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/frame_host/render_frame_host_manager.cc
diff --git a/content/browser/frame_host/render_frame_host_manager.cc b/content/browser/frame_host/render_frame_host_manager.cc
index 3a1921bb1f4fd708ba265327e41fa1212fc2be64..209736582d430421aeb50fdc13a9fe3e7c1fe7f0 100644
--- a/content/browser/frame_host/render_frame_host_manager.cc
+++ b/content/browser/frame_host/render_frame_host_manager.cc
@@ -489,7 +489,8 @@ void RenderFrameHostManager::OnCrossSiteResponse(
referrer, page_transition, global_request_id,
should_replace_current_entry,
transfer_navigation_handle_->IsPost() ? "POST" : "GET",
- transfer_navigation_handle_->resource_request_body());
+ transfer_navigation_handle_->resource_request_body(),
+ std::string() /* extra_headers */);
Łukasz Anforowicz 2016/09/22 21:23:16 We are preserving the post body, because we know t
Łukasz Anforowicz 2016/09/27 18:58:36 It turns out that XSSAuditor works fine, even if w
Tom Sepez 2016/09/27 19:59:10 That's correct.
Charlie Reis 2016/09/30 21:31:55 So, do you still intend to pass headers here, or i
Łukasz Anforowicz 2016/09/30 23:16:59 I think it is safe to not pass the headers (this h
// The transferring request was only needed during the RequestTransferURL
// call, so it is safe to clear at this point.

Powered by Google App Engine
This is Rietveld 408576698