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

Unified Diff: Source/core/html/HTMLPlugInElement.cpp

Issue 1326603002: Oilpan: update plugin handling to work over plugins persisted over reattach (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 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 | « no previous file | Source/web/WebPluginContainerImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLPlugInElement.cpp
diff --git a/Source/core/html/HTMLPlugInElement.cpp b/Source/core/html/HTMLPlugInElement.cpp
index a1a36515039e106a6dc8d6620d648889858107f3..cde74055127060bfdae14c9d5a8a6a459bdfa1dc 100644
--- a/Source/core/html/HTMLPlugInElement.cpp
+++ b/Source/core/html/HTMLPlugInElement.cpp
@@ -116,6 +116,8 @@ void HTMLPlugInElement::setPersistedPluginWidget(Widget* widget)
LocalFrame* frame = toPluginView(m_persistedPluginWidget.get())->pluginFrame();
ASSERT(frame);
frame->unregisterPluginElement(this);
+ if (!widget)
+ m_persistedPluginWidget->dispose();
haraken 2015/09/01 14:32:25 I'm wondering why we don't call m_persistedPluginW
sof 2015/09/01 21:37:31 The prompt disposal (via deref() on clearing) will
}
if (widget && widget->isPluginView()) {
LocalFrame* frame = toPluginView(widget)->pluginFrame();
« no previous file with comments | « no previous file | Source/web/WebPluginContainerImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698