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

Unified Diff: content/renderer/render_frame_proxy.cc

Issue 2004653002: OpenURL post data handling. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@post-data-my-stuff
Patch Set: Rebasing... Created 4 years, 6 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
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | content/test/data/form_that_posts_to_echoall.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_frame_proxy.cc
diff --git a/content/renderer/render_frame_proxy.cc b/content/renderer/render_frame_proxy.cc
index 1dd8b44fc186d75602a50e826db9943abef42548..74bcd08f83fd5d30621189215620cb4af68e337f 100644
--- a/content/renderer/render_frame_proxy.cc
+++ b/content/renderer/render_frame_proxy.cc
@@ -10,6 +10,7 @@
#include "base/command_line.h"
#include "base/lazy_instance.h"
+#include "content/child/web_url_request_util.h"
#include "content/child/webmessageportchannel_impl.h"
#include "content/common/content_security_policy_header.h"
#include "content/common/frame_messages.h"
@@ -446,6 +447,8 @@ void RenderFrameProxy::navigate(const blink::WebURLRequest& request,
bool should_replace_current_entry) {
FrameHostMsg_OpenURL_Params params;
params.url = request.url();
+ params.uses_post = request.httpMethod().utf8() == "POST";
+ params.resource_request_body = GetRequestBodyForWebURLRequest(request);
params.referrer = Referrer(
blink::WebStringToGURL(
request.httpHeaderField(blink::WebString::fromUTF8("Referer"))),
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | content/test/data/form_that_posts_to_echoall.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698