Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2350)

Unified Diff: content/browser/site_per_process_browsertest.cc

Issue 600553003: Enable swapping a frame back in to its parent process (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remoteToLocal
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 465fed363fb06e5615697ef151b5a65ac3b7eba4..a49b7d1e2cd41058bbb6223ae5728cba66490a0a 100644
--- a/content/browser/site_per_process_browsertest.cc
+++ b/content/browser/site_per_process_browsertest.cc
@@ -362,13 +362,12 @@ IN_PROC_BROWSER_TEST_F(SitePerProcessBrowserTest, MAYBE_NavigateRemoteFrame) {
EXPECT_NE(site_instance,
child->current_frame_host()->GetSiteInstance());
- // TODO(japhet): This currently causes an assertion in the renderer process.
- // Enable when the assertion is fixed.
- //NavigateFrameToURL(child, http_url);
- //EXPECT_EQ(http_url, observer.navigation_url());
- //EXPECT_TRUE(observer.navigation_succeeded());
- //EXPECT_EQ(shell()->web_contents()->GetSiteInstance(),
- // child->current_frame_host()->GetSiteInstance());
+ // Navigate back into the original process
+ NavigateFrameToURL(child, http_url);
+ EXPECT_EQ(http_url, observer.navigation_url());
+ EXPECT_TRUE(observer.navigation_succeeded());
+ EXPECT_EQ(shell()->web_contents()->GetSiteInstance(),
+ child->current_frame_host()->GetSiteInstance());
}
// Crash a subframe and ensures its children are cleared from the FrameTree.

Powered by Google App Engine
This is Rietveld 408576698