diff options
Diffstat (limited to 'content/renderer/render_view_impl.cc')
-rw-r--r-- | content/renderer/render_view_impl.cc | 5 |
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 |