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

Unified Diff: Source/core/frame/LocalFrame.cpp

Issue 1041473002: Detach old frame on WebFrame::swap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: tests and cleanup Created 5 years, 7 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: Source/core/frame/LocalFrame.cpp
diff --git a/Source/core/frame/LocalFrame.cpp b/Source/core/frame/LocalFrame.cpp
index edd58bd52392b820387fa793d139f5e92d9a2a43..fba2db59fa604f575f96725521c4d9681becdc7b 100644
--- a/Source/core/frame/LocalFrame.cpp
+++ b/Source/core/frame/LocalFrame.cpp
@@ -260,7 +260,7 @@ void LocalFrame::reload(ReloadPolicy reloadPolicy, ClientRedirectPolicy clientRe
m_navigationScheduler.scheduleReload();
}
-void LocalFrame::detach()
+void LocalFrame::detach(DetachType type)
{
// A lot of the following steps can result in the current frame being
// detached, so protect a reference to it.
@@ -286,7 +286,7 @@ void LocalFrame::detach()
setView(nullptr);
willDetachFrameHost();
InspectorInstrumentation::frameDetachedFromParent(this);
- Frame::detach();
+ Frame::detach(type);
// Signal frame destruction here rather than in the destructor.
// Main motivation is to avoid being dependent on its exact timing (Oilpan.)

Powered by Google App Engine
This is Rietveld 408576698