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 1eda27565a29aaec4708c4c0bdbb119436eff283..51d2d6c325e6016b1f91be93f915e6f6bdf87143 100644 |
--- a/content/browser/web_contents/web_contents_impl_unittest.cc |
+++ b/content/browser/web_contents/web_contents_impl_unittest.cc |
@@ -985,6 +985,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(); |