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

Issue 2475693002: Do not reset NavigationHandle when navigating same-page (Closed)

Created:
4 years, 1 month ago by clamy
Modified:
4 years, 1 month ago
CC:
chromium-reviews, tyoshino+watch_chromium.org, creis+watch_chromium.org, nasko+codewatch_chromium.org, jam, loading-reviews_chromium.org, darin-cc_chromium.org, gavinp+loader_chromium.org, blink-reviews, Nate Chapin
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Do not reset NavigationHandle when navigating same-page This CL ensures that the NavigationHandle in the RenderFrameHost is not reset when the frame just navigated same-page. This matches what Blink is doing, where a same-page navigation will not interrupt a cross-document one. BUG=658530 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/3bf35e3c0aed8dbfcdfcbc00e15c650e62838d03 Cr-Commit-Position: refs/heads/master@{#431265}

Patch Set 1 #

Total comments: 25

Patch Set 2 : Addressed comments #

Total comments: 2

Patch Set 3 : Addressed comments + compilation issue #

Patch Set 4 : git cl format #

Patch Set 5 : Rebase #

Total comments: 19

Patch Set 6 : Rebase #

Patch Set 7 : Addressed comments #

Total comments: 10

Patch Set 8 : Rebase #

Patch Set 9 : Addressed comments #

Total comments: 1

Patch Set 10 : Rebase + removed DCHECK #

Patch Set 11 : Rebase + removed DCHECK #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+301 lines, -145 lines) Patch
M chrome/browser/ssl/chrome_security_state_model_client_unittest.cc View 1 2 3 3 chunks +6 lines, -2 lines 0 comments Download
M content/browser/frame_host/interstitial_page_navigator_impl.h View 1 2 3 4 5 6 2 chunks +4 lines, -14 lines 0 comments Download
M content/browser/frame_host/interstitial_page_navigator_impl.cc View 1 2 3 4 5 6 2 chunks +10 lines, -16 lines 0 comments Download
M content/browser/frame_host/navigation_controller_impl.h View 2 chunks +8 lines, -4 lines 0 comments Download
M content/browser/frame_host/navigation_controller_impl.cc View 1 2 3 4 5 6 9 chunks +16 lines, -15 lines 0 comments Download
M content/browser/frame_host/navigation_controller_impl_browsertest.cc View 1 2 3 4 5 6 7 8 1 chunk +122 lines, -0 lines 0 comments Download
M content/browser/frame_host/navigator.h View 1 2 3 4 5 6 4 chunks +11 lines, -11 lines 0 comments Download
M content/browser/frame_host/navigator.cc View 1 2 3 4 5 6 1 chunk +0 lines, -5 lines 0 comments Download
M content/browser/frame_host/navigator_impl.h View 1 2 3 4 5 6 2 chunks +2 lines, -3 lines 0 comments Download
M content/browser/frame_host/navigator_impl.cc View 1 2 3 4 5 6 7 4 chunks +7 lines, -10 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.h View 1 2 3 4 5 6 7 2 chunks +6 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 4 5 6 7 9 2 chunks +100 lines, -59 lines 1 comment Download
M content/browser/loader/navigation_resource_throttle.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -4 lines 0 comments Download
M testing/buildbot/filters/browser-side-navigation.linux.content_browsertests.filter View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameLoader.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -2 lines 0 comments Download

Messages

Total messages: 53 (33 generated)
clamy
@nasko, creis, japhet: PTAL
4 years, 1 month ago (2016-11-03 17:29:41 UTC) #6
Nate Chapin
blink LGTM
4 years, 1 month ago (2016-11-03 17:34:51 UTC) #7
Charlie Reis
Ah, subtle. Yes, I think this should work, though it's a bit unfortunate to allow ...
4 years, 1 month ago (2016-11-03 22:02:22 UTC) #10
clamy
Thanks! https://codereview.chromium.org/2475693002/diff/1/content/browser/frame_host/interstitial_page_navigator_impl.cc File content/browser/frame_host/interstitial_page_navigator_impl.cc (right): https://codereview.chromium.org/2475693002/diff/1/content/browser/frame_host/interstitial_page_navigator_impl.cc#newcode51 content/browser/frame_host/interstitial_page_navigator_impl.cc:51: navigation_handle_->DidCommitNavigation(input_params, false, On 2016/11/03 22:02:22, Charlie Reis wrote: ...
4 years, 1 month ago (2016-11-04 14:18:22 UTC) #13
clamy
@estark: PTAL at the changes in chrome/browser/ssl. The issue is that the unit test was ...
4 years, 1 month ago (2016-11-04 14:20:03 UTC) #15
estark
I have a couple questions, just want to make sure that the code that is ...
4 years, 1 month ago (2016-11-04 14:53:59 UTC) #18
clamy
On 2016/11/04 14:53:59, estark wrote: > I have a couple questions, just want to make ...
4 years, 1 month ago (2016-11-04 15:11:46 UTC) #19
estark
Ahh, ok, thanks for the explanations! c/b/ssl lgtm if you rename navigate_to_http_2 to navigate_to_different_http_page On ...
4 years, 1 month ago (2016-11-04 15:30:06 UTC) #20
clamy
Thanks! https://codereview.chromium.org/2475693002/diff/20001/chrome/browser/ssl/chrome_security_state_model_client_unittest.cc File chrome/browser/ssl/chrome_security_state_model_client_unittest.cc (right): https://codereview.chromium.org/2475693002/diff/20001/chrome/browser/ssl/chrome_security_state_model_client_unittest.cc#newcode276 chrome/browser/ssl/chrome_security_state_model_client_unittest.cc:276: void navigate_to_http_2() { NavigateAndCommit(GURL("http://example2.test")); } On 2016/11/04 14:53:59, ...
4 years, 1 month ago (2016-11-04 15:47:26 UTC) #25
Charlie Reis
Thanks! I still have a concern about the interstitial case, but it's generally looking about ...
4 years, 1 month ago (2016-11-04 17:30:54 UTC) #30
clamy
Thanks! https://codereview.chromium.org/2475693002/diff/80001/content/browser/frame_host/interstitial_page_navigator_impl.cc File content/browser/frame_host/interstitial_page_navigator_impl.cc (right): https://codereview.chromium.org/2475693002/diff/80001/content/browser/frame_host/interstitial_page_navigator_impl.cc#newcode50 content/browser/frame_host/interstitial_page_navigator_impl.cc:50: if (!navigation_handle->IsSamePage() && navigation_handle_) { On 2016/11/04 17:30:53, ...
4 years, 1 month ago (2016-11-07 14:10:52 UTC) #35
Charlie Reis
Great-- LGTM. https://codereview.chromium.org/2475693002/diff/80001/content/browser/frame_host/interstitial_page_navigator_impl.cc File content/browser/frame_host/interstitial_page_navigator_impl.cc (right): https://codereview.chromium.org/2475693002/diff/80001/content/browser/frame_host/interstitial_page_navigator_impl.cc#newcode50 content/browser/frame_host/interstitial_page_navigator_impl.cc:50: if (!navigation_handle->IsSamePage() && navigation_handle_) { On 2016/11/07 ...
4 years, 1 month ago (2016-11-08 06:38:54 UTC) #38
nasko
LGTM with some nits. Overall I like the approach of explicit navigation_handle passed to the ...
4 years, 1 month ago (2016-11-09 01:30:22 UTC) #39
clamy
Thanks! https://codereview.chromium.org/2475693002/diff/80001/testing/buildbot/filters/browser-side-navigation.linux.content_browsertests.filter File testing/buildbot/filters/browser-side-navigation.linux.content_browsertests.filter (right): https://codereview.chromium.org/2475693002/diff/80001/testing/buildbot/filters/browser-side-navigation.linux.content_browsertests.filter#newcode9 testing/buildbot/filters/browser-side-navigation.linux.content_browsertests.filter:9: -NavigationControllerBrowserTest.SamePageBrowserInitiated On 2016/11/08 06:38:53, Charlie Reis (OOO til ...
4 years, 1 month ago (2016-11-09 18:05:52 UTC) #40
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/2475693002/160001
4 years, 1 month ago (2016-11-09 18:06:28 UTC) #43
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/334179)
4 years, 1 month ago (2016-11-09 19:31:15 UTC) #45
clamy
https://codereview.chromium.org/2475693002/diff/200001/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/2475693002/diff/200001/content/browser/frame_host/render_frame_host_impl.cc#newcode1213 content/browser/frame_host/render_frame_host_impl.cc:1213: // the renderer). Do it now. I had to ...
4 years, 1 month ago (2016-11-10 14:25:16 UTC) #46
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/2475693002/200001
4 years, 1 month ago (2016-11-10 14:25:41 UTC) #49
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 1 month ago (2016-11-10 16:00:14 UTC) #51
commit-bot: I haz the power
4 years, 1 month ago (2016-11-10 16:02:40 UTC) #53
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/3bf35e3c0aed8dbfcdfcbc00e15c650e62838d03
Cr-Commit-Position: refs/heads/master@{#431265}

Powered by Google App Engine
This is Rietveld 408576698