Chromium Code Reviews| 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 54739f8eef907b594394538eef63cfece4a25d3e..e2615dc5a4c64d1493a974be0815c12cab6a0f83 100644 |
| --- a/content/browser/site_per_process_browsertest.cc |
| +++ b/content/browser/site_per_process_browsertest.cc |
| @@ -6219,16 +6219,10 @@ IN_PROC_BROWSER_TEST_F(SitePerProcessBrowserTest, |
| EXPECT_EQ(1, child_count); |
| } |
| -#if defined(OS_LINUX) |
| -#define MAYBE_NavigateAboutBlankAndDetach DISABLED_NavigateAboutBlankAndDetach |
| -#else |
| -#define MAYBE_NavigateAboutBlankAndDetach NavigateAboutBlankAndDetach |
| -#endif |
| // Similar to NavigateProxyAndDetachBeforeCommit, but uses a synchronous |
| // navigation to about:blank and the parent removes the child frame in a load |
| // event handler for the subframe. |
| -IN_PROC_BROWSER_TEST_F(SitePerProcessBrowserTest, |
| - MAYBE_NavigateAboutBlankAndDetach) { |
| +IN_PROC_BROWSER_TEST_F(SitePerProcessBrowserTest, NavigateAboutBlankAndDetach) { |
|
alexmos
2017/01/13 02:26:54
This test was disabled in https://crbug.com/660622
Charlie Reis
2017/01/18 00:18:41
Acknowledged.
|
| GURL main_url( |
| embedded_test_server()->GetURL("a.com", "/remove_frame_on_load.html")); |
| EXPECT_TRUE(NavigateToURL(shell(), main_url)); |
| @@ -6241,8 +6235,9 @@ IN_PROC_BROWSER_TEST_F(SitePerProcessBrowserTest, |
| EXPECT_NE(shell()->web_contents()->GetSiteInstance(), |
| child->current_frame_host()->GetSiteInstance()); |
| - // Navigate the child frame to "about:blank" from the parent document. |
| - TestNavigationObserver observer(shell()->web_contents()); |
| + // Navigate the child frame to "about:blank" from the parent document and |
| + // wait for it to be removed. |
| + FrameDeletedObserver observer(child); |
| EXPECT_TRUE(ExecuteScript( |
| root, base::StringPrintf("f.src = '%s'", url::kAboutBlankURL))); |
| observer.Wait(); |