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

Issue 2166113002: Simplify decidePolicyForNavigation + remove POST-only-in-http(s) DCHECK. (Closed)

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

Description

Simplify decidePolicyForNavigation + remove POST-only-in-http(s) DCHECK. This CL simplifies RenderFrameImpl::decidePolicyForNavigation check for navigating to file: URIs. The simplification is okay, because if it's safe to fork for file-to-file navigations when the opener isn't found, then it should be also safe to do it even when there is an opener. The simplification is desirable, because it removes code that is not yet quite compatible with OOPIFs (where top()->document() may be null). The simplification means that after the CL fast/events/popup-allowed-from-gesture-initiated-form-submit.html layout test (which POSTs a form to a file URI) goes through NavigationControllerImpl::LoadURLWithParams. This exposes the need to remove an overagressive DCHECK that expected POST method only for http (or https) URIs. Since apparently other parts of the system work gracefully when POSTing to a non-http URI, the DCHECK is being removed. BUG=101395, 466297 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/96db896a6696944f84bb31f1baea9b4bb88deb91 Cr-Commit-Position: refs/heads/master@{#407033}

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -15 lines) Patch
M content/browser/frame_host/navigation_controller_impl.cc View 1 chunk +0 lines, -9 lines 3 comments Download
M content/renderer/render_frame_impl.cc View 1 chunk +4 lines, -6 lines 1 comment Download

Messages

Total messages: 15 (7 generated)
Łukasz Anforowicz
Charlie, can you take a look please? https://codereview.chromium.org/2166113002/diff/1/content/browser/frame_host/navigation_controller_impl.cc File content/browser/frame_host/navigation_controller_impl.cc (left): https://codereview.chromium.org/2166113002/diff/1/content/browser/frame_host/navigation_controller_impl.cc#oldcode675 content/browser/frame_host/navigation_controller_impl.cc:675: } I ...
4 years, 5 months ago (2016-07-20 22:23:04 UTC) #5
Łukasz Anforowicz
+tsepez@ to CC [the author of https://crrev.com/2153573002 that this CL is based on]
4 years, 5 months ago (2016-07-20 22:23:57 UTC) #6
Charlie Reis
Thanks for following up! LGTM with one sanity check below. https://codereview.chromium.org/2166113002/diff/1/content/browser/frame_host/navigation_controller_impl.cc File content/browser/frame_host/navigation_controller_impl.cc (left): https://codereview.chromium.org/2166113002/diff/1/content/browser/frame_host/navigation_controller_impl.cc#oldcode675 ...
4 years, 5 months ago (2016-07-20 22:50:38 UTC) #7
Łukasz Anforowicz
On 2016/07/20 22:50:38, Charlie Reis wrote: > Thanks for following up! LGTM with one sanity ...
4 years, 5 months ago (2016-07-21 00:16:50 UTC) #8
Charlie Reis
Thanks, still LGTM. https://codereview.chromium.org/2166113002/diff/1/content/browser/frame_host/navigation_controller_impl.cc File content/browser/frame_host/navigation_controller_impl.cc (left): https://codereview.chromium.org/2166113002/diff/1/content/browser/frame_host/navigation_controller_impl.cc#oldcode675 content/browser/frame_host/navigation_controller_impl.cc:675: } On 2016/07/21 00:16:50, Łukasz Anforowicz ...
4 years, 5 months ago (2016-07-21 23:25:21 UTC) #9
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/2166113002/1
4 years, 5 months ago (2016-07-21 23:40:39 UTC) #11
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 5 months ago (2016-07-22 03:38:16 UTC) #13
commit-bot: I haz the power
4 years, 5 months ago (2016-07-22 03:39:56 UTC) #15
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/96db896a6696944f84bb31f1baea9b4bb88deb91
Cr-Commit-Position: refs/heads/master@{#407033}

Powered by Google App Engine
This is Rietveld 408576698