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

Issue 2004653002: OpenURL post data handling. (Closed)

Created:
4 years, 7 months ago by Łukasz Anforowicz
Modified:
4 years, 6 months ago
Reviewers:
Charlie Reis, nasko, dcheng
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, nasko+codewatch_chromium.org, jam, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org, site-isolation-reviews_chromium.org, Charlie Reis
Base URL:
https://chromium.googlesource.com/chromium/src.git@post-data-my-stuff
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Passing ResourceRequestBody via FrameHostMsg_OpenURL_Params. This CL adds support for passing ResourceRequestBody (i.e. POST data) inside the payload of FrameHostMsg_OpenURL IPC message. This CL adds |uses_post| and |resource_request_body| to FrameHostMsg_OpenURL_Params and plumbs through these 2 values into OpenURLParams passed to //content embedder. This CL wraps-up the work started in 2 earlier CLs: - https://crrev.com/2038813003 (Making ResourceRequestBody part of //content's public API.) - https://crrev.com/2038233002 (Using ResourceRequestBody as the type of HTTP body outside of //content) After this CL scenarios and tests that requires passing of POST data via OpenURL code path should start working: - HTTP POST requests where decidePolicyForNavigation tells that the request should be handled by the //content embedder. This scenario is covered by a new CrossSiteTransferTest.PostViaOpenUrlMsg content browser test added in this CL. - HTTP POST requests handled by RenderFrame::navigate (i.e. form submissions targeting remote frame). This scenario is covered by a layout test added in a recent CL: http/tests/navigation/form-targets-cross-site-frame-post.html BUG=344348 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/bb2101b8d45775fef16a0ce4af1ae71f35749e76 Cr-Commit-Position: refs/heads/master@{#400442}

Patch Set 1 #

Patch Set 2 : #

Total comments: 3

Patch Set 3 : Rebasing... #

Patch Set 4 : Self-review. #

Total comments: 12

Patch Set 5 : Moving PostViaOpenUrlMsg test to NavigationControllerBrowserTest suite. #

Patch Set 6 : Tweaked test comments to address CR feedback. #

Total comments: 4

Patch Set 7 : Rebasing... #

Patch Set 8 : Rebasing... #

Patch Set 9 : Rebasing... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+114 lines, -53 lines) Patch
M content/browser/frame_host/navigation_controller_impl_browsertest.cc View 1 2 3 4 5 6 2 chunks +38 lines, -0 lines 0 comments Download
M content/browser/frame_host/navigator.h View 1 2 1 chunk +10 lines, -7 lines 0 comments Download
M content/browser/frame_host/navigator_impl.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/frame_host/navigator_impl.cc View 1 2 3 4 5 6 2 chunks +12 lines, -7 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 4 5 6 1 chunk +3 lines, -3 lines 0 comments Download
M content/browser/frame_host/render_frame_proxy_host.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/security_exploit_browsertest.cc View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M content/common/frame_messages.h View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.h View 1 2 3 4 5 6 7 2 chunks +9 lines, -5 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 7 8 8 chunks +29 lines, -23 lines 0 comments Download
M content/renderer/render_frame_proxy.cc View 1 2 3 4 5 6 2 chunks +3 lines, -0 lines 0 comments Download
A + content/test/data/form_that_posts_to_echoall.html View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/FlagExpectations/site-per-process View 1 2 3 4 5 6 7 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 29 (10 generated)
Łukasz Anforowicz
Charlie, this CL is not ready for a real review, but I had 2 questions ...
4 years, 7 months ago (2016-05-20 23:24:22 UTC) #3
Łukasz Anforowicz
Charlie, feel free to ignore this CL for now - I think I've found my ...
4 years, 7 months ago (2016-05-23 13:43:18 UTC) #5
Łukasz Anforowicz
Charlie, can you take a look please? https://codereview.chromium.org/2004653002/diff/60001/third_party/WebKit/LayoutTests/FlagExpectations/site-per-process File third_party/WebKit/LayoutTests/FlagExpectations/site-per-process (right): https://codereview.chromium.org/2004653002/diff/60001/third_party/WebKit/LayoutTests/FlagExpectations/site-per-process#newcode12 third_party/WebKit/LayoutTests/FlagExpectations/site-per-process:12: # http/tests/navigation/form-targets-cross-site-frame-get.html ...
4 years, 6 months ago (2016-06-09 16:26:13 UTC) #8
Charlie Reis
Exciting! Looks mostly good, though I'm a bit unclear how much is left to fix ...
4 years, 6 months ago (2016-06-09 22:59:42 UTC) #9
Łukasz Anforowicz
Charlie, can you take another look please? On 2016/06/09 22:59:42, Charlie Reis wrote: > Exciting! ...
4 years, 6 months ago (2016-06-10 19:53:52 UTC) #10
Łukasz Anforowicz
Nasko, can you do an OWNERS review for content/common/frame_messages.h? https://codereview.chromium.org/2004653002/diff/100001/content/common/frame_messages.h File content/common/frame_messages.h (right): https://codereview.chromium.org/2004653002/diff/100001/content/common/frame_messages.h#newcode453 content/common/frame_messages.h:453: ...
4 years, 6 months ago (2016-06-10 20:00:49 UTC) #12
nasko
IPC l-t-g-m. Will stamp it for real once creis@ has, as we are both content/ ...
4 years, 6 months ago (2016-06-10 20:22:29 UTC) #13
Charlie Reis
Thanks! LGTM, once the test expectations are updated. https://codereview.chromium.org/2004653002/diff/60001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/2004653002/diff/60001/content/renderer/render_frame_impl.cc#newcode4827 content/renderer/render_frame_impl.cc:4827: // ...
4 years, 6 months ago (2016-06-10 21:14:18 UTC) #14
Łukasz Anforowicz
On 2016/06/10 21:14:18, Charlie Reis wrote: > Thanks! LGTM, once the test expectations are updated. ...
4 years, 6 months ago (2016-06-10 23:11:53 UTC) #15
nasko
IPC LGTM
4 years, 6 months ago (2016-06-11 03:41:12 UTC) #16
dcheng
https://codereview.chromium.org/2004653002/diff/100001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/2004653002/diff/100001/content/renderer/render_frame_impl.cc#newcode2924 content/renderer/render_frame_impl.cc:2924: GetRequestBodyForWebURLRequest(request), referrer, policy, Two questions: 1) Is there another ...
4 years, 6 months ago (2016-06-12 05:29:00 UTC) #18
Łukasz Anforowicz
Daniel, please see my reply below. https://codereview.chromium.org/2004653002/diff/100001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/2004653002/diff/100001/content/renderer/render_frame_impl.cc#newcode2924 content/renderer/render_frame_impl.cc:2924: GetRequestBodyForWebURLRequest(request), referrer, policy, ...
4 years, 6 months ago (2016-06-13 18:26:23 UTC) #19
Łukasz Anforowicz
On 2016/06/10 21:14:18, Charlie Reis (OOO til June 18) wrote: > Thanks! LGTM, once the ...
4 years, 6 months ago (2016-06-15 21:32:38 UTC) #20
Charlie Reis
Thanks, updated expectations LGTM. https://codereview.chromium.org/2004653002/diff/60001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/2004653002/diff/60001/content/renderer/render_frame_impl.cc#newcode4827 content/renderer/render_frame_impl.cc:4827: // for examples of how ...
4 years, 6 months ago (2016-06-16 22:27:40 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2004653002/160001
4 years, 6 months ago (2016-06-17 14:46:15 UTC) #24
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 6 months ago (2016-06-17 16:52:39 UTC) #25
commit-bot: I haz the power
Patchset 9 (id:??) landed as https://crrev.com/bb2101b8d45775fef16a0ce4af1ae71f35749e76 Cr-Commit-Position: refs/heads/master@{#400442}
4 years, 6 months ago (2016-06-17 16:54:32 UTC) #27
oystein (OOO til 10th of July)
A revert of this CL (patchset #9 id:160001) has been created in https://codereview.chromium.org/2088793002/ by oysteine@chromium.org. ...
4 years, 6 months ago (2016-06-21 12:51:23 UTC) #28
oystein (OOO til 10th of July)
4 years, 6 months ago (2016-06-21 12:53:06 UTC) #29
Message was sent while issue was closed.
On 2016/06/21 12:51:23, Oystein wrote:
> A revert of this CL (patchset #9 id:160001) has been created in
> https://codereview.chromium.org/2088793002/ by mailto:oysteine@chromium.org.
> 
> The reason for reverting is: Reverting due to
> https://bugs.chromium.org/p/chromium/issues/detail?id=621473.

Oops, please ignore this sorry, wrong CL.

Powered by Google App Engine
This is Rietveld 408576698