Chromium Code Reviews| Index: Source/web/WebViewImpl.cpp |
| diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp |
| index e24eeed7f3845ccaad8b619f504b4a476f82fa03..298f8efe5b81ab6e91aaec4f664204c0b227a49c 100644 |
| --- a/Source/web/WebViewImpl.cpp |
| +++ b/Source/web/WebViewImpl.cpp |
| @@ -2467,6 +2467,7 @@ void WebViewImpl::dispatchUnloadEvent() |
| { |
| // Run unload handlers. |
| m_page->mainFrame()->loader().closeURL(); |
| + m_page->mainFrame()->loader().detachChildren(); |
| } |
| WebFrame* WebViewImpl::mainFrame() |