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

Unified Diff: content/renderer/render_frame_impl.h

Issue 1007123003: Clear RenderFrameImpl::frame_ pointer after deleting it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add test Created 5 years, 9 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 | content/renderer/render_frame_impl.cc » ('j') | content/renderer/render_frame_impl.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_frame_impl.h
diff --git a/content/renderer/render_frame_impl.h b/content/renderer/render_frame_impl.h
index 4863460d6fa04a24ce4446835ff569e889881c8f..a31276bbb6330d999c1e41d79b85f2d93e2c7e6a 100644
--- a/content/renderer/render_frame_impl.h
+++ b/content/renderer/render_frame_impl.h
@@ -738,7 +738,9 @@ class CONTENT_EXPORT RenderFrameImpl
RendererCdmManager* GetCdmManager();
#endif
- // Stores the WebLocalFrame we are associated with.
+ // Stores the WebLocalFrame we are associated with. This is null from the
+ // constructor until SetWebFrame is called, and it is null after
+ // frameDetached is called until destruction (which may be asynchronous).
blink::WebLocalFrame* frame_;
base::WeakPtr<RenderViewImpl> render_view_;
« no previous file with comments | « no previous file | content/renderer/render_frame_impl.cc » ('j') | content/renderer/render_frame_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698