| Index: content/browser/frame_host/render_frame_host_impl_browsertest.cc
|
| diff --git a/content/browser/frame_host/render_frame_host_impl_browsertest.cc b/content/browser/frame_host/render_frame_host_impl_browsertest.cc
|
| index b5d03afe2ea34953bc207ba59894e1959530cad0..ac04a9dff1c8db278142cb8aab91d78919f36336 100644
|
| --- a/content/browser/frame_host/render_frame_host_impl_browsertest.cc
|
| +++ b/content/browser/frame_host/render_frame_host_impl_browsertest.cc
|
| @@ -353,4 +353,13 @@ IN_PROC_BROWSER_TEST_F(RenderFrameHostImplBrowserTest,
|
| EXPECT_TRUE(is_closed);
|
| }
|
|
|
| +// After a navigation, the StreamHandle must be released.
|
| +IN_PROC_BROWSER_TEST_F(RenderFrameHostImplBrowserTest, StreamHandleReleased) {
|
| + EXPECT_TRUE(NavigateToURL(shell(), GetTestUrl("", "title1.html")));
|
| + WebContentsImpl* wc = static_cast<WebContentsImpl*>(shell()->web_contents());
|
| + RenderFrameHostImpl* main_frame =
|
| + static_cast<RenderFrameHostImpl*>(wc->GetMainFrame());
|
| + EXPECT_EQ(nullptr, main_frame->stream_handle_for_testing());
|
| +}
|
| +
|
| } // namespace content
|
|
|