chrome: Fix crash on display of browser via "New window" command

This commit is contained in:
Marshall Greenblatt 2023-02-17 14:06:32 -05:00
parent 82dc13a870
commit 719fe7691b
1 changed files with 5 additions and 2 deletions

View File

@ -313,8 +313,11 @@ void CefBrowserContentsDelegate::RenderFrameCreated(
web_contents()->SetPageBaseBackgroundColor(SkColor()); web_contents()->SetPageBaseBackgroundColor(SkColor());
web_contents()->SetPageBaseBackgroundColor(base_background_color); web_contents()->SetPageBaseBackgroundColor(base_background_color);
} }
if (render_view_host->GetWidget() &&
render_view_host->GetWidget()->GetView()) {
render_view_host->GetWidget()->GetView()->SetBackgroundColor( render_view_host->GetWidget()->GetView()->SetBackgroundColor(
base_background_color); base_background_color);
}
platform_delegate()->RenderViewCreated(render_view_host); platform_delegate()->RenderViewCreated(render_view_host);
} }