Chromium Code Reviews| Index: content/browser/web_contents/web_contents_impl_unittest.cc |
| diff --git a/content/browser/web_contents/web_contents_impl_unittest.cc b/content/browser/web_contents/web_contents_impl_unittest.cc |
| index 4bc08036afd9520bc0d981fc83b67d9ba9c939b9..0c13e0614c8da9b761bb6f0563a567617c12b0d2 100644 |
| --- a/content/browser/web_contents/web_contents_impl_unittest.cc |
| +++ b/content/browser/web_contents/web_contents_impl_unittest.cc |
| @@ -1337,11 +1337,13 @@ TEST_F(WebContentsImplTest, CrossSiteNavigationBackOldNavigationIgnored) { |
| // Go back within the site. |
| controller().GoBack(); |
| + contents()->GetMainFrame()->PrepareForCommit(); |
|
clamy
2016/06/29 12:15:51
The new check this patch adds in NavigationRequest
|
| EXPECT_FALSE(contents()->CrossProcessNavigationPending()); |
| EXPECT_EQ(entry2, controller().GetPendingEntry()); |
| // Before that commits, go back again. |
| controller().GoBack(); |
| + contents()->GetMainFrame()->PrepareForCommit(); |
| EXPECT_TRUE(contents()->CrossProcessNavigationPending()); |
| EXPECT_TRUE(contents()->GetPendingMainFrame()); |
| EXPECT_EQ(entry1, controller().GetPendingEntry()); |