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

Issue 2879853002: PlzNavigate: Fix form submission to OOPIF frame. (Closed)

Created:
3 years, 7 months ago by arthursonzogni
Modified:
3 years, 7 months ago
Reviewers:
nasko
CC:
chromium-reviews, jam, nasko+codewatch_chromium.org, darin-cc_chromium.org, creis+watch_chromium.org, Charlie Reis, clamy, Ɓukasz Anforowicz, Tom Sepez
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

PlzNavigate: Fix form submission to OOPIF frame. When a renderer-initiated form-submission targets an OOPIF iframe, the navigation uses the OpenURL path. Renderer-initiated form-submission was not implemented here with PlzNavigate. This CL makes it work. As a consequence, it fixes the XSS Auditor issue (https://crbug.com/710937). BUG=710937 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation;master.tryserver.chromium.linux:linux_site_isolation,linux_chromium_browser_side_navigation_rel Review-Url: https://codereview.chromium.org/2879853002 Cr-Commit-Position: refs/heads/master@{#472306} Committed: https://chromium.googlesource.com/chromium/src/+/bc5732b54102e0c89f3098e03ddb865636d5a8bd

Patch Set 1 #

Patch Set 2 : Fix errors && add a test. #

Patch Set 3 : Addressed comments Nasko@ #

Total comments: 2

Patch Set 4 : Add TODO. #

Total comments: 7

Patch Set 5 : Nits. #

Patch Set 6 : Nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+113 lines, -38 lines) Patch
M content/browser/frame_host/navigation_request.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/frame_host/navigation_request.cc View 1 2 3 4 5 2 chunks +14 lines, -7 lines 0 comments Download
M content/browser/frame_host/navigator_impl.h View 1 chunk +12 lines, -10 lines 0 comments Download
M content/browser/frame_host/navigator_impl.cc View 1 2 3 4 chunks +22 lines, -15 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager_unittest.cc View 4 chunks +5 lines, -5 lines 0 comments Download
M content/browser/site_per_process_browsertest.cc View 1 2 3 4 1 chunk +58 lines, -0 lines 0 comments Download
M content/test/data/frame_tree/page_with_one_frame.html View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 52 (42 generated)
arthursonzogni
Hi Nasko, Please take a look.
3 years, 7 months ago (2017-05-12 16:11:27 UTC) #27
Charlie Reis
Mostly deferring to Nasko, but one drive-by question below. https://codereview.chromium.org/2879853002/diff/120001/content/browser/frame_host/navigator_impl.cc File content/browser/frame_host/navigator_impl.cc (right): https://codereview.chromium.org/2879853002/diff/120001/content/browser/frame_host/navigator_impl.cc#newcode894 content/browser/frame_host/navigator_impl.cc:894: ...
3 years, 7 months ago (2017-05-12 23:50:21 UTC) #30
arthursonzogni
https://codereview.chromium.org/2879853002/diff/120001/content/browser/frame_host/navigator_impl.cc File content/browser/frame_host/navigator_impl.cc (right): https://codereview.chromium.org/2879853002/diff/120001/content/browser/frame_host/navigator_impl.cc#newcode894 content/browser/frame_host/navigator_impl.cc:894: // classified as browser-initiated when this one has already ...
3 years, 7 months ago (2017-05-15 09:48:15 UTC) #33
nasko
LGTM with a few nits. https://codereview.chromium.org/2879853002/diff/140001/content/browser/frame_host/navigation_request.cc File content/browser/frame_host/navigation_request.cc (right): https://codereview.chromium.org/2879853002/diff/140001/content/browser/frame_host/navigation_request.cc#newcode206 content/browser/frame_host/navigation_request.cc:206: // renderer-initiated form submission ...
3 years, 7 months ago (2017-05-16 04:08:21 UTC) #36
arthursonzogni
Thanks Nasko! https://codereview.chromium.org/2879853002/diff/140001/content/browser/frame_host/navigation_request.cc File content/browser/frame_host/navigation_request.cc (right): https://codereview.chromium.org/2879853002/diff/140001/content/browser/frame_host/navigation_request.cc#newcode206 content/browser/frame_host/navigation_request.cc:206: // renderer-initiated form submission that took the ...
3 years, 7 months ago (2017-05-16 12:45:59 UTC) #41
nasko
https://codereview.chromium.org/2879853002/diff/140001/content/browser/frame_host/navigation_request.cc File content/browser/frame_host/navigation_request.cc (right): https://codereview.chromium.org/2879853002/diff/140001/content/browser/frame_host/navigation_request.cc#newcode218 content/browser/frame_host/navigation_request.cc:218: bool is_form_submission = bool(request_body); On 2017/05/16 12:45:58, arthursonzogni wrote: ...
3 years, 7 months ago (2017-05-16 14:02:09 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2879853002/180001
3 years, 7 months ago (2017-05-16 15:51:22 UTC) #45
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/427990)
3 years, 7 months ago (2017-05-16 21:36:22 UTC) #47
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2879853002/180001
3 years, 7 months ago (2017-05-16 23:42:58 UTC) #49
commit-bot: I haz the power
3 years, 7 months ago (2017-05-17 03:37:45 UTC) #52
Message was sent while issue was closed.
Committed patchset #6 (id:180001) as
https://chromium.googlesource.com/chromium/src/+/bc5732b54102e0c89f3098e03ddb...

Powered by Google App Engine
This is Rietveld 408576698