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

Issue 2410303006: Avoiding going through RenderFrameProxy when targeting a *new* frame. (Closed)

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

Description

Avoiding going through RenderFrameProxy when targeting a *new* frame. BUG=647772 Committed: https://crrev.com/e7250ebe260957a67131667cdde6b7b838a9b1f5 Cr-Commit-Position: refs/heads/master@{#426483}

Patch Set 1 #

Patch Set 2 : Added a new browser test (which fails [as expected] before FrameLoader.cpp changes). #

Patch Set 3 : Tweak the test to Command-Click instead of Ctrl-Click on a Mac. #

Total comments: 8

Patch Set 4 : Tried refactoring form-related workarounds (as suggested by japhet@). #

Patch Set 5 : Avoid calling findFrameForNavigation twice (b/c of side-effects - console messages - impacting layo… #

Patch Set 6 : Preparing for removal of one of form-related workarounds. #

Total comments: 4

Patch Set 7 : s/!canIgnoreTargetFrame/shouldNavigateTargetFrame/g #

Total comments: 2

Patch Set 8 : s/shift/ctrl/ in a "comment" in the test html file. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+103 lines, -10 lines) Patch
M chrome/browser/chrome_site_per_process_browsertest.cc View 1 2 1 chunk +36 lines, -0 lines 0 comments Download
A chrome/test/data/frame_tree/anchor_targeting_remote_frame.html View 1 2 3 4 5 6 7 1 chunk +26 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameLoader.cpp View 1 2 3 4 5 6 4 chunks +41 lines, -10 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 41 (27 generated)
Łukasz Anforowicz
japhet@, could you please take a look? https://codereview.chromium.org/2410303006/diff/40001/third_party/WebKit/Source/core/loader/FrameLoader.cpp File third_party/WebKit/Source/core/loader/FrameLoader.cpp (left): https://codereview.chromium.org/2410303006/diff/40001/third_party/WebKit/Source/core/loader/FrameLoader.cpp#oldcode1068 third_party/WebKit/Source/core/loader/FrameLoader.cpp:1068: Frame* targetFrame ...
4 years, 2 months ago (2016-10-13 14:08:01 UTC) #12
Nate Chapin
This seems pretty reasonable, I just want to see if we can leave the code ...
4 years, 2 months ago (2016-10-13 22:11:24 UTC) #13
Łukasz Anforowicz
My apologies for not replying earlier (I needed to look at another bug). I'll try ...
4 years, 2 months ago (2016-10-15 01:29:39 UTC) #14
Łukasz Anforowicz
japhet@, could you please take another look? Unfortunately, I don't see how to clean-up or ...
4 years, 2 months ago (2016-10-18 23:13:17 UTC) #23
dcheng
drive-by https://codereview.chromium.org/2410303006/diff/100001/third_party/WebKit/Source/core/loader/FrameLoader.cpp File third_party/WebKit/Source/core/loader/FrameLoader.cpp (right): https://codereview.chromium.org/2410303006/diff/100001/third_party/WebKit/Source/core/loader/FrameLoader.cpp#newcode972 third_party/WebKit/Source/core/loader/FrameLoader.cpp:972: static bool canIgnoreTargetFrame(NavigationPolicy policy) { Minor nit: shouldIgnoreTargetFrame() ...
4 years, 2 months ago (2016-10-18 23:18:34 UTC) #24
Łukasz Anforowicz
https://codereview.chromium.org/2410303006/diff/100001/third_party/WebKit/Source/core/loader/FrameLoader.cpp File third_party/WebKit/Source/core/loader/FrameLoader.cpp (right): https://codereview.chromium.org/2410303006/diff/100001/third_party/WebKit/Source/core/loader/FrameLoader.cpp#newcode972 third_party/WebKit/Source/core/loader/FrameLoader.cpp:972: static bool canIgnoreTargetFrame(NavigationPolicy policy) { On 2016/10/18 23:18:34, dcheng ...
4 years, 2 months ago (2016-10-18 23:26:45 UTC) #25
Nate Chapin
blink lgtm https://codereview.chromium.org/2410303006/diff/40001/third_party/WebKit/Source/core/loader/FrameLoader.cpp File third_party/WebKit/Source/core/loader/FrameLoader.cpp (left): https://codereview.chromium.org/2410303006/diff/40001/third_party/WebKit/Source/core/loader/FrameLoader.cpp#oldcode1068 third_party/WebKit/Source/core/loader/FrameLoader.cpp:1068: Frame* targetFrame = request.form() On 2016/10/18 23:13:17, ...
4 years, 2 months ago (2016-10-18 23:37:22 UTC) #26
dcheng
https://codereview.chromium.org/2410303006/diff/100001/third_party/WebKit/Source/core/loader/FrameLoader.cpp File third_party/WebKit/Source/core/loader/FrameLoader.cpp (right): https://codereview.chromium.org/2410303006/diff/100001/third_party/WebKit/Source/core/loader/FrameLoader.cpp#newcode972 third_party/WebKit/Source/core/loader/FrameLoader.cpp:972: static bool canIgnoreTargetFrame(NavigationPolicy policy) { On 2016/10/18 23:26:45, Łukasz ...
4 years, 2 months ago (2016-10-18 23:42:00 UTC) #27
Łukasz Anforowicz
Alex, can you take a look please? https://codereview.chromium.org/2410303006/diff/100001/third_party/WebKit/Source/core/loader/FrameLoader.cpp File third_party/WebKit/Source/core/loader/FrameLoader.cpp (right): https://codereview.chromium.org/2410303006/diff/100001/third_party/WebKit/Source/core/loader/FrameLoader.cpp#newcode972 third_party/WebKit/Source/core/loader/FrameLoader.cpp:972: static bool ...
4 years, 2 months ago (2016-10-19 17:05:03 UTC) #29
alexmos
LGTM https://codereview.chromium.org/2410303006/diff/120001/chrome/test/data/frame_tree/anchor_targeting_remote_frame.html File chrome/test/data/frame_tree/anchor_targeting_remote_frame.html (right): https://codereview.chromium.org/2410303006/diff/120001/chrome/test/data/frame_tree/anchor_targeting_remote_frame.html#newcode20 chrome/test/data/frame_tree/anchor_targeting_remote_frame.html:20: id="test-anchor">Test link to click while holding shift key</a> ...
4 years, 2 months ago (2016-10-19 23:48:30 UTC) #34
Łukasz Anforowicz
Thanks for reviewing everyone. I'll push to CQ tomorrow. https://codereview.chromium.org/2410303006/diff/120001/chrome/test/data/frame_tree/anchor_targeting_remote_frame.html File chrome/test/data/frame_tree/anchor_targeting_remote_frame.html (right): https://codereview.chromium.org/2410303006/diff/120001/chrome/test/data/frame_tree/anchor_targeting_remote_frame.html#newcode20 chrome/test/data/frame_tree/anchor_targeting_remote_frame.html:20: ...
4 years, 2 months ago (2016-10-19 23:52:01 UTC) #35
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/2410303006/140001
4 years, 2 months ago (2016-10-20 14:17:41 UTC) #38
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 2 months ago (2016-10-20 15:44:13 UTC) #39
commit-bot: I haz the power
4 years, 2 months ago (2016-10-21 13:18:33 UTC) #41
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/e7250ebe260957a67131667cdde6b7b838a9b1f5
Cr-Commit-Position: refs/heads/master@{#426483}

Powered by Google App Engine
This is Rietveld 408576698