From ac956aff3eef8c415ebcfc5909d0942c46c67985 Mon Sep 17 00:00:00 2001 From: Simon Pena Date: Tue, 17 Dec 2024 09:49:12 +0000 Subject: [PATCH] Use AllowWebGLInWorkers only if WEBGL is enabled --- .../CoordinatedGraphics/DrawingAreaCoordinatedGraphics.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/DrawingAreaCoordinatedGraphics.cpp b/Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/DrawingAreaCoordinatedGraphics.cpp index 21f2ee9fdb6f4..52ca1ad8944a8 100644 --- a/Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/DrawingAreaCoordinatedGraphics.cpp +++ b/Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/DrawingAreaCoordinatedGraphics.cpp @@ -245,7 +245,9 @@ void DrawingAreaCoordinatedGraphics::updatePreferences(const WebPreferencesStore settings.setAsyncOverflowScrollingEnabled(false); } +#if ENABLE(WEBGL) settings.setAllowWebGLInWorkers(!store.getBoolValueForKey(WebPreferencesKey::nonCompositedWebGLEnabledKey())); +#endif } void DrawingAreaCoordinatedGraphics::mainFrameContentSizeChanged(WebCore::FrameIdentifier, const IntSize& size)