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

Unified Diff: chrome/renderer/plugins/plugin_placeholder.cc

Issue 23771002: Fix check for removed plug-in while loading a blocked plug-in. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/plugins/plugin_placeholder.cc
diff --git a/chrome/renderer/plugins/plugin_placeholder.cc b/chrome/renderer/plugins/plugin_placeholder.cc
index eae3e0ef7d7ff630928b8a16f1e6b4a2b19d79fb..0e58e7286f22259d2ed56ea98f277df672257947 100644
--- a/chrome/renderer/plugins/plugin_placeholder.cc
+++ b/chrome/renderer/plugins/plugin_placeholder.cc
@@ -323,7 +323,7 @@ void PluginPlaceholder::ReplacePlugin(WebPlugin* new_plugin) {
// The plug-in has been removed from the page. Destroy the old plug-in
// (which will destroy us).
- if (element.parentNode().isNull()) {
+ if (!element.pluginContainer()) {
plugin_->destroy();
return;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698