Index: content/browser/site_per_process_browsertest.cc |
diff --git a/content/browser/site_per_process_browsertest.cc b/content/browser/site_per_process_browsertest.cc |
index d905c9f063ec91d1e3eaa55f379958f6f04567d1..a2bd669dd4ea0c5c281227a3756cdb647439ad0a 100644 |
--- a/content/browser/site_per_process_browsertest.cc |
+++ b/content/browser/site_per_process_browsertest.cc |
@@ -309,9 +309,12 @@ IN_PROC_BROWSER_TEST_F(SitePerProcessBrowserTest, CrossSiteIframe) { |
proxy_to_parent = child->render_manager()->GetProxyToParent(); |
EXPECT_TRUE(proxy_to_parent); |
EXPECT_TRUE(proxy_to_parent->cross_process_frame_connector()); |
- EXPECT_EQ( |
+ // The out-of-process iframe should have its own RenderWidgetHost, |
+ // independent of any RenderViewHost. |
+ EXPECT_NE( |
rvh->GetView(), |
proxy_to_parent->cross_process_frame_connector()->get_view_for_testing()); |
+ EXPECT_TRUE(child->current_frame_host()->GetRenderWidgetHost()); |
// Load another cross-site page into the same iframe. |
url = embedded_test_server()->GetURL("bar.com", "/title3.html"); |
@@ -341,9 +344,10 @@ IN_PROC_BROWSER_TEST_F(SitePerProcessBrowserTest, CrossSiteIframe) { |
} |
EXPECT_EQ(proxy_to_parent, child->render_manager()->GetProxyToParent()); |
EXPECT_TRUE(proxy_to_parent->cross_process_frame_connector()); |
- EXPECT_EQ( |
+ EXPECT_NE( |
child->current_frame_host()->render_view_host()->GetView(), |
proxy_to_parent->cross_process_frame_connector()->get_view_for_testing()); |
+ EXPECT_TRUE(child->current_frame_host()->GetRenderWidgetHost()); |
} |
IN_PROC_BROWSER_TEST_F(SitePerProcessBrowserTest, NavigateRemoteFrame) { |