summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/browser/web_contents_unittest.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/web_contents_unittest.cc b/chrome/browser/web_contents_unittest.cc
index 5d386c5..dde6ba1 100644
--- a/chrome/browser/web_contents_unittest.cc
+++ b/chrome/browser/web_contents_unittest.cc
@@ -994,6 +994,9 @@ TEST_F(WebContentsTest, NavigateTwoTabsCrossSite) {
// Open a new tab with the same SiteInstance, navigated to the same site.
TestWebContents* contents2 = new TestWebContents(profile.get(), instance1);
+ params1.page_id = 2; // Need this since the site instance is the same (which
+ // is the scope of page IDs) and we want to consider
+ // this a new page.
contents2->transition_cross_site = true;
contents2->SetupController(profile.get());
contents2->controller()->LoadURL(url, PageTransition::TYPED);