From 0d4c466645b6cfc973c7a50cf6cbbfdb2b90bb72 Mon Sep 17 00:00:00 2001 From: Marshall Greenblatt Date: Mon, 6 Mar 2023 15:42:12 -0500 Subject: [PATCH] chrome: Don't show gray background during browser load (fixes issue #3459) --- libcef/browser/chrome/chrome_browser_host_impl.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libcef/browser/chrome/chrome_browser_host_impl.cc b/libcef/browser/chrome/chrome_browser_host_impl.cc index 17bbb7512..c62776bf5 100644 --- a/libcef/browser/chrome/chrome_browser_host_impl.cc +++ b/libcef/browser/chrome/chrome_browser_host_impl.cc @@ -20,6 +20,7 @@ #include "chrome/browser/ui/browser_tabstrip.h" #include "chrome/browser/ui/browser_window.h" #include "chrome/browser/ui/tabs/tab_strip_model.h" +#include "chrome/browser/ui/views/frame/contents_web_view.h" #include "chrome/common/pref_names.h" #include "libcef/browser/chrome/views/chrome_browser_frame.h" #include "libcef/browser/chrome/views/chrome_browser_view.h" @@ -435,6 +436,9 @@ Browser* ChromeBrowserHostImpl::CreateBrowser( chrome_browser_view->InitBrowser(base::WrapUnique(browser), params.browser_view); + // Don't set theme colors in ContentsWebView::UpdateBackgroundColor. + chrome_browser_view->contents_web_view()->SetBackgroundVisible(false); + // Don't show the browser by default. show_browser = false; }