Commit 5ae739b5 authored by Fady Samuel's avatar Fady Samuel Committed by Commit Bot

Surface Synchronization: Fix Crash in RenderWidgetHostViewMac

In RenderWidgetHostViewMac::UpdateScreenInfo, it may follow a null
|render_widget_host_| pointer at tear down. This CL adds a null check.

Bug: 783547
Change-Id: Ia83c3f82ea8331c1fa52edaebc4cf88a9a1a20f3
Reviewed-on: default avatarSaman Sami <>
Commit-Queue: Fady Samuel <>
Cr-Commit-Position: refs/heads/master@{#516107}
parent f9ce2500
......@@ -1113,7 +1113,7 @@ void RenderWidgetHostViewMac::SetTooltipText(
void RenderWidgetHostViewMac::UpdateScreenInfo(gfx::NativeView view) {
if (!render_widget_host_->auto_resize_enabled())
if (!render_widget_host_ || !render_widget_host_->auto_resize_enabled())
local_surface_id_ = local_surface_id_allocator_.GenerateId();
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment