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: https://chromium-review.googlesource.com/767687Reviewed-by: default avatarSaman Sami <samans@chromium.org>
Commit-Queue: Fady Samuel <fsamuel@chromium.org>
Cr-Commit-Position: refs/heads/master@{#516107}
parent f9ce2500
......@@ -1113,7 +1113,7 @@ void RenderWidgetHostViewMac::SetTooltipText(
void RenderWidgetHostViewMac::UpdateScreenInfo(gfx::NativeView view) {
RenderWidgetHostViewBase::UpdateScreenInfo(view);
if (!render_widget_host_->auto_resize_enabled())
if (!render_widget_host_ || !render_widget_host_->auto_resize_enabled())
return;
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