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

Issue 1736393002: Remove incorrect sanity checks in RenderFrameHostManager::OnCrossSiteResponse. (Closed)

Created:
4 years, 9 months ago by alexmos
Modified:
4 years, 9 months ago
Reviewers:
Charlie Reis
CC:
chromium-reviews, darin-cc_chromium.org, nasko+codewatch_chromium.org, jam, creis+watch_chromium.org, 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

Remove incorrect sanity checks in RenderFrameHostManager::OnCrossSiteResponse. The existing DCHECKs implied that having a pending RenderFrameHost means that it was the one that made the request, but this is not necessarily the case. For example, suppose that during a pending cross-site navigation, the frame performs a different same-site navigation which redirects cross-site. In this case, there will be a pending RenderFrameHost, but this request is made by the current RenderFrameHost. It should be ok to remove these DCHECKS as there is another DCHECK for verifying that the transfer came from either the pending or current RFH, which gets most of the desired coverage. I hit this while working on blocking frames due to CSP/X-Frame-Options with --site-per-process (trying to navigate a blocked frame cross-site), and split this off from https://codereview.chromium.org/1710283003/. BUG=584845 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/8b16a4f748cd849186289bba79e215cacc310561 Cr-Commit-Position: refs/heads/master@{#378111}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Remove DCHECKs #

Patch Set 3 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -23 lines) Patch
M content/browser/frame_host/render_frame_host_manager.cc View 1 2 4 chunks +22 lines, -23 lines 0 comments Download

Messages

Total messages: 14 (7 generated)
alexmos
Charlie, please take a look. I agree this is good to land on its own, ...
4 years, 9 months ago (2016-02-26 22:16:40 UTC) #3
Charlie Reis
Looking closer, I'm wondering if we want to drop these DCHECKs in favor of the ...
4 years, 9 months ago (2016-02-26 23:51:20 UTC) #4
alexmos
https://codereview.chromium.org/1736393002/diff/1/content/browser/frame_host/render_frame_host_manager.cc File content/browser/frame_host/render_frame_host_manager.cc (right): https://codereview.chromium.org/1736393002/diff/1/content/browser/frame_host/render_frame_host_manager.cc#newcode422 content/browser/frame_host/render_frame_host_manager.cc:422: RenderFrameHostImpl* pending_render_frame_host, On 2016/02/26 23:51:19, Charlie Reis (slow til ...
4 years, 9 months ago (2016-02-27 00:20:28 UTC) #6
Charlie Reis
Thanks! LGTM.
4 years, 9 months ago (2016-02-27 00:23:22 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1736393002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1736393002/40001
4 years, 9 months ago (2016-02-27 04:02:29 UTC) #10
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 9 months ago (2016-02-27 04:10:06 UTC) #12
commit-bot: I haz the power
4 years, 9 months ago (2016-02-27 04:17:49 UTC) #14
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/8b16a4f748cd849186289bba79e215cacc310561
Cr-Commit-Position: refs/heads/master@{#378111}

Powered by Google App Engine
This is Rietveld 408576698