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

Unified Diff: content/browser/frame_host/navigation_controller_impl_browsertest.cc

Issue 2381503003: PlzNav: Fix NavigationControllerBrowserTest.EnsureSamePageNavigationUpdatesFrameNaviga… (Closed)
Patch Set: . Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/frame_host/navigation_controller_impl_browsertest.cc
diff --git a/content/browser/frame_host/navigation_controller_impl_browsertest.cc b/content/browser/frame_host/navigation_controller_impl_browsertest.cc
index 5e91cccc414b761646daab7389c76148150b996a..fa749d8337011bccb5a8a52c951d178386205734 100644
--- a/content/browser/frame_host/navigation_controller_impl_browsertest.cc
+++ b/content/browser/frame_host/navigation_controller_impl_browsertest.cc
@@ -6049,12 +6049,14 @@ IN_PROC_BROWSER_TEST_F(NavigationControllerBrowserTest,
// Simulate the user hitting Enter in the omnibox without changing the URL.
{
TestNavigationObserver observer(web_contents);
- web_contents->GetController().LoadURL(web_contents->GetLastCommittedURL(),
- Referrer(), ui::PAGE_TRANSITION_LINK,
- std::string());
+ web_contents->GetController().LoadURL(
+ web_contents->GetLastCommittedURL(), Referrer(),
+ ui::PAGE_TRANSITION_RELOAD, std::string());
clamy 2016/10/05 12:47:04 Are we sure that in the case described above we wo
nasko 2016/10/05 22:07:09 You are correct. Selecting the current URL in the
observer.Wait();
}
+ EXPECT_EQ(2, web_contents->GetController().GetEntryCount());
+
// Prior to fixing the issue, the above omnibox navigation (which is
// classified as SAME_PAGE) was leaving the FrameNavigationEntry with the
// same document sequence number as the previous entry but updates the URL.
« no previous file with comments | « no previous file | content/browser/frame_host/navigation_handle_impl.h » ('j') | content/browser/frame_host/navigation_request.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698