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

Issue 2495373002: Revert of PlzNav: Fix NavigationControllerBrowserTest.EnsureSamePageNavigationUpdatesFrameNaviga… (Closed)

Created:
4 years, 1 month ago by scottmg
Modified:
4 years, 1 month ago
Reviewers:
clamy, Charlie Reis, nasko, boliu
CC:
chromium-reviews, jam, nasko+codewatch_chromium.org, darin-cc_chromium.org, creis+watch_chromium.org, Takashi Toyoshima, Avi (use Gerrit)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Revert of PlzNav: Fix NavigationControllerBrowserTest.EnsureSamePageNavigationUpdatesFrameNaviga… (patchset #21 id:500001 of https://codereview.chromium.org/2381503003/ ) Reason for revert: https://crbug.com/664319. Original issue's description: > PlzNav: Fix NavigationControllerBrowserTest.EnsureSamePageNavigationUpdatesFrameNaviga… > > This test is failing in PlzNav because > https://cs.chromium.org/chromium/src/content/browser/frame_host/navigation_controller_impl_browsertest.cc?q=%22Simulate+the+user+hitting+Enter%22&sq=package:chromium&l=5943&dr=C > is creating a new navigation entry, so the GoBack() goes to the wrong > place. > > It's doing that because > FrameHostMsg_DidCommitProvisionalLoad_Params.did_create_new_entry is > true. > > That in turn is because SendDidCommitProvisionalLoad is getting a commit > type of WebStandardCommit (not WebHistoryInertCommit like it does in > non-PlzNav). > > *That* is because here > https://cs.chromium.org/chromium/src/third_party/WebKit/Source/core/loader/FrameLoader.cpp?rcl=0&l=839 > the url being checked is the already-redirected one in the PlzNavigate > case (sub.a.com), but m_documentLoader->urlForHistory() is the > pre-redirected one (a.com/server-redirect?sub...). > > So, this works in non-PlzNav because Blink tells us that it should > replace the current entry (i.e. it's like a reload). > > Instead of relying on Blink to determine that, check if the render frame > node's last committed url is the original url we navigated to there, and > that we're not just mucking with history navigation, in which case we > convert the normal load to a reload. > > R=nasko@chromium.org,clamy@chromium.org > BUG=630103, 475027, 536102 > > Committed: https://crrev.com/28bbbb16194c7337e22c3e0bda752ae6b4b681cf > Cr-Commit-Position: refs/heads/master@{#429302} TBR=nasko@chromium.org,clamy@chromium.org,creis@chromium.org,boliu@chromium.org # Not skipping CQ checks because original CL landed more than 1 days ago. BUG=630103, 475027, 536102, 664319 Committed: https://crrev.com/fe5ea3f7cb872ea6fa2e560cfefc9185393a8cb2 Cr-Commit-Position: refs/heads/master@{#431896}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -16 lines) Patch
M content/browser/frame_host/navigation_controller_impl.cc View 1 chunk +0 lines, -16 lines 0 comments Download
M testing/buildbot/filters/browser-side-navigation.linux.content_browsertests.filter View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 8 (4 generated)
scottmg
Created Revert of PlzNav: Fix NavigationControllerBrowserTest.EnsureSamePageNavigationUpdatesFrameNaviga…
4 years, 1 month ago (2016-11-14 17:59:48 UTC) #2
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/2495373002/1
4 years, 1 month ago (2016-11-14 18:00:34 UTC) #4
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 1 month ago (2016-11-14 19:20:45 UTC) #6
commit-bot: I haz the power
4 years, 1 month ago (2016-11-14 19:35:18 UTC) #8
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/fe5ea3f7cb872ea6fa2e560cfefc9185393a8cb2
Cr-Commit-Position: refs/heads/master@{#431896}

Powered by Google App Engine
This is Rietveld 408576698