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

Unified Diff: content/browser/renderer_host/render_view_host_impl.cc

Issue 11193051: To fix the cross-site post submission bug. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: New OpenURL function and DataType Test Created 8 years, 1 month 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/renderer_host/render_view_host_impl.cc
diff --git a/content/browser/renderer_host/render_view_host_impl.cc b/content/browser/renderer_host/render_view_host_impl.cc
index 30748c09d3bf48d958bc2a95a5d2970686fa748c..2cb4ee17c546970f6b49d7a316fbda1324f5b249 100644
--- a/content/browser/renderer_host/render_view_host_impl.cc
+++ b/content/browser/renderer_host/render_view_host_impl.cc
@@ -1363,16 +1363,15 @@ void RenderViewHostImpl::OnMsgToggleFullscreen(bool enter_fullscreen) {
WasResized();
}
-void RenderViewHostImpl::OnMsgOpenURL(const GURL& url,
- const Referrer& referrer,
- WindowOpenDisposition disposition,
- int64 source_frame_id) {
- GURL validated_url(url);
+void RenderViewHostImpl::OnMsgOpenURL(
+ const ViewHostMsg_OpenURL_Params& params) {
+ GURL validated_url(params.url);
FilterURL(ChildProcessSecurityPolicyImpl::GetInstance(),
GetProcess(), false, &validated_url);
delegate_->RequestOpenURL(
- this, validated_url, referrer, disposition, source_frame_id);
+ this, validated_url, params.referrer, params.disposition, params.frame_id,
+ params.extra_header, params.request_body);
}
void RenderViewHostImpl::OnMsgDidContentsPreferredSizeChange(

Powered by Google App Engine
This is Rietveld 408576698