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

Unified Diff: content/renderer/render_frame_impl.cc

Issue 2276053002: Fix use-after-free in the renderer process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: adding ifdef Created 4 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: content/renderer/render_frame_impl.cc
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
index 7c13c18e19f3cca5553b8681b09ff77650559056..f20c460c984b3f8509d372ea3ae578880d7be9ef 100644
--- a/content/renderer/render_frame_impl.cc
+++ b/content/renderer/render_frame_impl.cc
@@ -2828,6 +2828,11 @@ void RenderFrameImpl::frameDetached(blink::WebLocalFrame* frame,
// called on the parent frame.
DCHECK_EQ(frame_, frame);
+#if defined(ENABLE_PLUGINS)
+ if (focused_pepper_plugin_)
+ GetRenderWidget()->set_focused_pepper_plugin(nullptr);
Charlie Reis 2016/08/24 20:38:44 Looks like there's a focused_pepper_plugin_ on bot
+#endif
+
FOR_EACH_OBSERVER(RenderFrameObserver, observers_, FrameDetached());
FOR_EACH_OBSERVER(RenderViewObserver, render_view_->observers(),
FrameDetached(frame));
« 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