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

Issue 1999573003: OOPIFs: Fixing submitting forms targeting a remote frame. (Closed)

Created:
4 years, 7 months ago by Łukasz Anforowicz
Modified:
4 years, 6 months ago
Reviewers:
Nate Chapin, dcheng
CC:
chromium-reviews, tyoshino+watch_chromium.org, blink-reviews-html_chromium.org, loading-reviews_chromium.org, dglazkov+blink, gavinp+loader_chromium.org, blink-reviews, Nate Chapin, alexmos, site-isolation-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@form-target-is-cross-site-frame
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

OOPIFs: Fixing submitting forms targeting a remote frame. The fix makes form submissions targeting a remote frame go through RenderFrameProxy::navigate which forwards them to the browser via FrameHostMsg_OpenURL IPC message. Right now this IPC only supports HTTP GET method (support for POST method is being fixed in parallel - see https://crbug.com/344348). BUG=585284 Committed: https://crrev.com/fa9b547938cddc922a7a51e73d5416bc4520f274 Cr-Commit-Position: refs/heads/master@{#399524}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 4

Patch Set 6 : Rebasing... #

Patch Set 7 : populate... -> createFrameLoadRequest + going through RemoteFrame::navigate(FrameLoadRequest&) #

Total comments: 8

Patch Set 8 : Replaced setURL call with calling a different FrameLoadRequest constructor. #

Patch Set 9 : Rebasing... #

Patch Set 10 : Fixing IWYU problem exposed by changes in FrameLoadRequest.h #

Total comments: 2

Patch Set 11 : Added a TODO for investigating if remote and local frames can be handled uniformly. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -75 lines) Patch
M third_party/WebKit/LayoutTests/FlagExpectations/site-per-process View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
D third_party/WebKit/LayoutTests/http/tests/navigation/form-targets-cross-site-frame.html View 1 1 chunk +0 lines, -39 lines 0 comments Download
D third_party/WebKit/LayoutTests/http/tests/navigation/form-targets-cross-site-frame-expected.txt View 1 chunk +0 lines, -11 lines 0 comments Download
A + third_party/WebKit/LayoutTests/http/tests/navigation/form-targets-cross-site-frame-get.html View 1 2 1 chunk +1 line, -1 line 0 comments Download
A + third_party/WebKit/LayoutTests/http/tests/navigation/form-targets-cross-site-frame-get-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
A + third_party/WebKit/LayoutTests/http/tests/navigation/form-targets-cross-site-frame-post.html View 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/WebKit/LayoutTests/http/tests/navigation/form-targets-cross-site-frame-post-expected.txt View 0 chunks +-1 lines, --1 lines 0 comments Download
M third_party/WebKit/Source/core/css/cssom/FilteredComputedStylePropertyMapTest.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/RemoteFrame.cpp View 1 2 3 4 5 6 7 2 chunks +14 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLFormElement.cpp View 1 2 3 4 5 6 7 8 9 10 3 chunks +10 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FormSubmission.h View 1 2 3 4 5 6 4 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FormSubmission.cpp View 1 2 3 4 5 6 7 8 2 chunks +8 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/FrameLoadRequest.h View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/FrameLoader.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/FrameLoader.cpp View 1 2 3 4 5 6 7 8 2 chunks +7 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/loader/NavigationScheduler.cpp View 1 2 3 4 5 6 1 chunk +1 line, -4 lines 0 comments Download

Messages

Total messages: 41 (18 generated)
Łukasz Anforowicz
Nate, could you please take a look? The current CL seems to fix submissions of ...
4 years, 6 months ago (2016-06-04 00:03:40 UTC) #3
Nate Chapin
Sorry for the delay... This seems reasonable, just a few code formatting nits. It's probably ...
4 years, 6 months ago (2016-06-07 21:35:51 UTC) #4
Łukasz Anforowicz
Thanks Nate. Could you please take another look? On 2016/06/07 21:35:51, Nate Chapin wrote: > ...
4 years, 6 months ago (2016-06-08 20:32:44 UTC) #5
Nate Chapin
LGTM with a small formatting nit https://codereview.chromium.org/1999573003/diff/120001/third_party/WebKit/Source/core/frame/RemoteFrame.cpp File third_party/WebKit/Source/core/frame/RemoteFrame.cpp (right): https://codereview.chromium.org/1999573003/diff/120001/third_party/WebKit/Source/core/frame/RemoteFrame.cpp#newcode71 third_party/WebKit/Source/core/frame/RemoteFrame.cpp:71: FrameLoadRequest frameRequest(&originDocument); frameRequest(&originDocument, ...
4 years, 6 months ago (2016-06-09 23:40:43 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1999573003/140001
4 years, 6 months ago (2016-06-10 16:16:36 UTC) #8
Łukasz Anforowicz
Thanks for reviewing. https://codereview.chromium.org/1999573003/diff/120001/third_party/WebKit/Source/core/frame/RemoteFrame.cpp File third_party/WebKit/Source/core/frame/RemoteFrame.cpp (right): https://codereview.chromium.org/1999573003/diff/120001/third_party/WebKit/Source/core/frame/RemoteFrame.cpp#newcode71 third_party/WebKit/Source/core/frame/RemoteFrame.cpp:71: FrameLoadRequest frameRequest(&originDocument); On 2016/06/09 23:40:43, Nate ...
4 years, 6 months ago (2016-06-10 16:17:25 UTC) #9
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/184313)
4 years, 6 months ago (2016-06-10 16:35:56 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1999573003/140001
4 years, 6 months ago (2016-06-10 16:41:50 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg_recipe on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_clang_dbg_recipe/builds/80107) linux_chromium_compile_dbg_ng on tryserver.chromium.linux (JOB_FAILED, ...
4 years, 6 months ago (2016-06-10 16:48:56 UTC) #16
Łukasz Anforowicz
+ikilpatrick@ as an FYI for the IWYU fix in FilteredComputedStylePropertyMapTest.cpp
4 years, 6 months ago (2016-06-10 18:09:53 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1999573003/180001
4 years, 6 months ago (2016-06-10 18:12:24 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/86022)
4 years, 6 months ago (2016-06-10 21:03:05 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1999573003/180001
4 years, 6 months ago (2016-06-10 21:33:54 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/86215)
4 years, 6 months ago (2016-06-11 00:23:38 UTC) #26
dcheng
https://codereview.chromium.org/1999573003/diff/180001/third_party/WebKit/Source/core/html/HTMLFormElement.cpp File third_party/WebKit/Source/core/html/HTMLFormElement.cpp (right): https://codereview.chromium.org/1999573003/diff/180001/third_party/WebKit/Source/core/html/HTMLFormElement.cpp#newcode429 third_party/WebKit/Source/core/html/HTMLFormElement.cpp:429: toRemoteFrame(targetFrame)->navigate(frameLoadRequest); Crazy idea: is it possible to just call ...
4 years, 6 months ago (2016-06-12 05:50:29 UTC) #28
Łukasz Anforowicz
Daniel, I think I'd still want to try to land as-is - please see my ...
4 years, 6 months ago (2016-06-13 17:13:43 UTC) #29
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1999573003/200001
4 years, 6 months ago (2016-06-13 17:14:59 UTC) #31
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-13 19:14:51 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1999573003/200001
4 years, 6 months ago (2016-06-13 20:24:25 UTC) #36
dcheng
On 2016/06/13 17:13:43, Łukasz Anforowicz wrote: > Daniel, I think I'd still want to try ...
4 years, 6 months ago (2016-06-13 20:26:56 UTC) #37
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 6 months ago (2016-06-13 20:29:37 UTC) #38
commit-bot: I haz the power
CQ bit was unchecked
4 years, 6 months ago (2016-06-13 20:30:15 UTC) #39
commit-bot: I haz the power
4 years, 6 months ago (2016-06-13 20:31:01 UTC) #41
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/fa9b547938cddc922a7a51e73d5416bc4520f274
Cr-Commit-Position: refs/heads/master@{#399524}

Powered by Google App Engine
This is Rietveld 408576698