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

Unified Diff: content/browser/browser_side_navigation_browsertest.cc

Issue 2917133002: Perform redirect checks before OnReceivedRedirect in //net. (Closed)
Patch Set: mmenke comments Created 3 years, 6 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/browser_side_navigation_browsertest.cc
diff --git a/content/browser/browser_side_navigation_browsertest.cc b/content/browser/browser_side_navigation_browsertest.cc
index 3dc6e81145437d0d8e341d21b769356765ed0c16..b7ea22af8ea9729924f9002cdcfd0809371ade1c 100644
--- a/content/browser/browser_side_navigation_browsertest.cc
+++ b/content/browser/browser_side_navigation_browsertest.cc
@@ -420,11 +420,14 @@ IN_PROC_BROWSER_TEST_F(BrowserSideNavigationBrowserTest,
// The expectation is that about:blank was loaded and the virtual URL is set
// to the URL that was blocked.
+ //
+ // TODO(nasko): Now that the error commits on the previous URL, the blocked
+ // navigation logic is no longer needed.
nasko 2017/06/06 00:27:38 Can you add "See https://crbug.com/723796." so the
davidben 2017/06/06 17:31:08 Done.
EXPECT_EQ(1, controller.GetLastCommittedEntryIndex());
EXPECT_FALSE(
controller.GetLastCommittedEntry()->GetURL().SchemeIs(url::kDataScheme));
- EXPECT_TRUE(controller.GetLastCommittedEntry()->GetVirtualURL().SchemeIs(
- url::kDataScheme));
+ EXPECT_EQ(redirect_to_blank_url,
+ controller.GetLastCommittedEntry()->GetVirtualURL());
EXPECT_EQ(url::kAboutBlankURL,
controller.GetLastCommittedEntry()->GetURL().spec());
}

Powered by Google App Engine
This is Rietveld 408576698