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

Issue 2417983002: Form submissions opening in a new window don't need special treatment anymore. (Closed)

Created:
4 years, 2 months ago by Łukasz Anforowicz
Modified:
4 years, 2 months ago
Reviewers:
Nate Chapin, nasko
CC:
chromium-reviews, blink-reviews, loading-reviews_chromium.org, tyoshino+watch_chromium.org, Nate Chapin, gavinp+loader_chromium.org, site-isolation-reviews_chromium.org, alexmos
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Form submissions opening in a new window don't need special treatment anymore. This CL removes one of workaround used by FrameLoader::load method when the http request is associated with a form. The workaround is no longer needed after r400442 fixed how HTTP method and request body are correctly plumbed through the OpenURL path. To make sure that the layout test exercising this functionality (shift-clicking on the form's submit button) still passes, some follow-up changes had to be made: - The CL needed to add support for NEW_WINDOW disposition to content::Shell::OpenURLFromTab - The CL needed to tweak the test to account for the fact that window.opener is null after opening web contents via shift-click (I've verified that this behavior is present for non-form-related, GET requests in 55.0.2883.18 so it seems to be WAI). BUG=344348 Committed: https://crrev.com/0413015fe88470d3e884a0aeb679eebb13a7e766 Cr-Commit-Position: refs/heads/master@{#426876}

Patch Set 1 #

Patch Set 2 : Workaround for POST-becoming-GET-in-OpenURL no longer needed after r400442. #

Patch Set 3 : Rebasing on top of https://crrev.com/2410303006 #

Patch Set 4 : Add support for NEW_WINDOW disposition in content::Shell::OpenURLFromTab. #

Total comments: 14

Patch Set 5 : git cl format #

Patch Set 6 : Addressed CR feedback from nasko@. #

Patch Set 7 : Using params.source_site_instance for consistency with //chrome layer. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -32 lines) Patch
M content/shell/browser/shell.h View 1 2 3 4 5 6 2 chunks +6 lines, -4 lines 1 comment Download
M content/shell/browser/shell.cc View 1 2 3 4 5 6 3 chunks +43 lines, -6 lines 2 comments Download
M third_party/WebKit/LayoutTests/http/tests/navigation/post-with-modifier.html View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/navigation/resources/post-with-modifier.php View 1 2 3 1 chunk +6 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameLoader.cpp View 1 2 3 3 chunks +3 lines, -12 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 36 (26 generated)
Łukasz Anforowicz
japhet@, can you please take a look? I'll later ask //content OWNERS to review my ...
4 years, 2 months ago (2016-10-19 20:48:51 UTC) #16
Nate Chapin
blink lgtm if the bots are happy
4 years, 2 months ago (2016-10-19 20:53:32 UTC) #17
Łukasz Anforowicz
nasko@, can you PTAL? https://codereview.chromium.org/2417983002/diff/60001/content/shell/browser/shell.cc File content/shell/browser/shell.cc (right): https://codereview.chromium.org/2417983002/diff/60001/content/shell/browser/shell.cc#newcode328 content/shell/browser/shell.cc:328: source->GetSiteInstance(), On 2016/10/19 20:48:50, Łukasz ...
4 years, 2 months ago (2016-10-19 22:23:00 UTC) #19
nasko
https://codereview.chromium.org/2417983002/diff/60001/content/shell/browser/shell.cc File content/shell/browser/shell.cc (right): https://codereview.chromium.org/2417983002/diff/60001/content/shell/browser/shell.cc#newcode317 content/shell/browser/shell.cc:317: case WindowOpenDisposition::CURRENT_TAB: Shouldn't case be indented from switch? https://codereview.chromium.org/2417983002/diff/60001/content/shell/browser/shell.cc#newcode324 ...
4 years, 2 months ago (2016-10-20 18:28:07 UTC) #22
Łukasz Anforowicz
Nasko, can you take another look? https://codereview.chromium.org/2417983002/diff/60001/content/shell/browser/shell.cc File content/shell/browser/shell.cc (right): https://codereview.chromium.org/2417983002/diff/60001/content/shell/browser/shell.cc#newcode317 content/shell/browser/shell.cc:317: case WindowOpenDisposition::CURRENT_TAB: On ...
4 years, 2 months ago (2016-10-20 22:56:42 UTC) #24
nasko
LGTM https://codereview.chromium.org/2417983002/diff/60001/content/shell/browser/shell.cc File content/shell/browser/shell.cc (right): https://codereview.chromium.org/2417983002/diff/60001/content/shell/browser/shell.cc#newcode328 content/shell/browser/shell.cc:328: source->GetSiteInstance(), On 2016/10/20 22:56:42, Łukasz Anforowicz wrote: > ...
4 years, 2 months ago (2016-10-21 16:32:47 UTC) #28
Łukasz Anforowicz
Thanks. https://codereview.chromium.org/2417983002/diff/60001/content/shell/browser/shell.cc File content/shell/browser/shell.cc (right): https://codereview.chromium.org/2417983002/diff/60001/content/shell/browser/shell.cc#newcode328 content/shell/browser/shell.cc:328: source->GetSiteInstance(), On 2016/10/21 16:32:47, nasko (slow) wrote: > ...
4 years, 2 months ago (2016-10-21 20:02:50 UTC) #29
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/2417983002/120001
4 years, 2 months ago (2016-10-21 20:03:41 UTC) #32
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 2 months ago (2016-10-21 20:26:56 UTC) #34
commit-bot: I haz the power
4 years, 2 months ago (2016-10-21 20:30:24 UTC) #36
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/0413015fe88470d3e884a0aeb679eebb13a7e766
Cr-Commit-Position: refs/heads/master@{#426876}

Powered by Google App Engine
This is Rietveld 408576698