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

Unified Diff: Source/web/WebViewImpl.cpp

Issue 143783002: Make it possible for the embedder to run unload handlers in subframes. Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 11 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
« no previous file with comments | « Source/core/loader/FrameLoader.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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()
« no previous file with comments | « Source/core/loader/FrameLoader.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698