summaryrefslogtreecommitdiffstats
path: root/content/renderer/render_view_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'content/renderer/render_view_impl.cc')
-rw-r--r--content/renderer/render_view_impl.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index 2489449..71cbefe 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -4348,6 +4348,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