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

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

Issue 1872313003: PlzNavigate: don't discard pending entry in DidFailProvisionalLoad (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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_unittest.cc
diff --git a/content/browser/frame_host/navigation_controller_impl_unittest.cc b/content/browser/frame_host/navigation_controller_impl_unittest.cc
index a4f4abab004d9c53a1dbb575e1ec5dca4d400289..155b96011385e4b597bef9891730a70f193a7cd7 100644
--- a/content/browser/frame_host/navigation_controller_impl_unittest.cc
+++ b/content/browser/frame_host/navigation_controller_impl_unittest.cc
@@ -416,6 +416,16 @@ TEST_F(NavigationControllerTest, GoToOffset) {
// is being aborted. This caused the last committed entry to be displayed in
// the omnibox, which is the entry before A was created.
TEST_F(NavigationControllerTest, DontDiscardWrongPendingEntry) {
+ // PlzNavigate: Entries are not discarded following the reception of
+ // DidFailProvisionalLoad. They are discarded in DidFailNavigation, when we
+ // still have the NavigationRequest. Since every change of the
+ // NavigationEntry would cause the NavigationRequest to go away, the right
+ // pending NavigationEntry will be discarded in DidFailNavigation.
+ if (IsBrowserSideNavigationEnabled()) {
+ SUCCEED() << "PlzNavigate: test not applicable.";
Charlie Reis 2016/04/11 21:10:57 I'm a bit nervous removing coverage for this witho
clamy 2016/04/12 14:08:01 I've made a few changes that enable the test to te
+ return;
+ }
+
NavigationControllerImpl& controller = controller_impl();
GURL initial_url("http://www.google.com");
GURL url_1("http://foo.com");

Powered by Google App Engine
This is Rietveld 408576698