summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSzabolcs David <davidsz@inf.u-szeged.hu>2023-07-04 16:47:03 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2023-07-30 00:33:18 +0000
commita11534225920bc36a5302d98684d148bd9a09272 (patch)
treec424959a649a3359b3de897e3f4cf2e6b1860783
parent38a2cea6159b783fdfbbd53b7b34d6586c7d42c8 (diff)
Fix crash on Google Meet when dark mode is enabled
Extensions can use offscreen views to perform background tasks or isolate script contexts. Avoid access of non-existing Qt delegate by early return. Task-number: QTBUG-113369 Change-Id: I361df0afc0da30c1a013380e1c97973153ffbfd3 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit 0548893a182f2896c98ecc252e9811261a08d982) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--src/core/render_widget_host_view_qt.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/render_widget_host_view_qt.cpp b/src/core/render_widget_host_view_qt.cpp
index fcd684b43..7561c5d79 100644
--- a/src/core/render_widget_host_view_qt.cpp
+++ b/src/core/render_widget_host_view_qt.cpp
@@ -367,6 +367,9 @@ gfx::Rect RenderWidgetHostViewQt::GetViewBounds()
void RenderWidgetHostViewQt::UpdateBackgroundColor()
{
+ if (!m_delegate)
+ return;
+
DCHECK(GetBackgroundColor());
SkColor color = *GetBackgroundColor();