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 70b86b9f80ad90ccd108f3259b86f303a6919320..7dbe246510791ce56c2ea17141e7c5b0dec2464d 100644 |
--- a/content/browser/web_contents/web_contents_impl_unittest.cc |
+++ b/content/browser/web_contents/web_contents_impl_unittest.cc |
@@ -988,6 +988,11 @@ TEST_F(WebContentsImplTest, FindOpenerRVHWhenPending) { |
// Tests that WebContentsImpl uses the current URL, not the SiteInstance's site, |
// to determine whether a navigation is cross-site. |
TEST_F(WebContentsImplTest, CrossSiteComparesAgainstCurrentPage) { |
+ // The assumptions this test makes aren't valid with --site-per-process. For |
+ // example, a cross-site URL won't ever commit in the old RFH. |
+ if (AreAllSitesIsolatedForTesting()) |
+ return; |
+ |
TestRenderFrameHost* orig_rfh = main_test_rfh(); |
SiteInstance* instance1 = contents()->GetSiteInstance(); |