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

Unified Diff: content/renderer/render_view_impl.cc

Issue 9349004: Early-return in RenderViewImpl::DidFlushPaint() if there is no WebView. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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_view_impl.cc
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index a23022d868b4d50e97c987b672a53812c5d68694..a888c643ac3094b5fd695157cd253a10fc2a48b3 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -4336,6 +4336,11 @@ void RenderViewImpl::DidFlushPaint() {
// won't change out from under us.
pepper_delegate_.ViewFlushedPaint();
+ // If the RenderWidget is closing down then early-exit, otherwise we'll crash.
+ // See crbug.com/112921.
+ if (!webview())
+ return;
+
WebFrame* main_frame = webview()->mainFrame();
// If we have a provisional frame we are between the start and commit stages
« 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