Skip to content

Commit d76f147

Browse files
committed
Disable WebkitGtk hardware-acceleration
It is tracked upstream https://bugs.webkit.org/show_bug.cgi?id=239429#c11 and being open for years already without a clue where the problem is and this prevents us from disabling only in certain cases as it's not yet identified when the issue happens or not. In order to prevent crashes this seems to be the only option for now. Even Gnome project like Evolution ended up doing the same ( https://gitlab.gnome.org/GNOME/evolution/-/commit/eb62ccaa28bbbca7668913ce7d8056a6d75f9b05 )
1 parent 9d9bee6 commit d76f147

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/org/eclipse/swt/browser/WebKit.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -741,6 +741,9 @@ public void create (Composite parent, int style) {
741741
OS.g_object_set (settings, WebKitGTK.javascript_can_open_windows_automatically, 1, 0);
742742
OS.g_object_set (settings, WebKitGTK.enable_webgl, 1, 0);
743743
OS.g_object_set (settings, WebKitGTK.enable_developer_extras, 1, 0);
744+
//disable hardware acceleration due to https://bugs.webkit.org/show_bug.cgi?id=239429#c11
745+
//even evolution ended up doing the same https://gitlab.gnome.org/GNOME/evolution/-/commit/eb62ccaa28bbbca7668913ce7d8056a6d75f9b05
746+
OS.g_object_set (settings, WebKitGTK.hardware_acceleration_policy, 2, 0);
744747

745748
OS.g_object_set (settings, WebKitGTK.default_charset, utfBytes, 0);
746749
if (WebKitGTK.webkit_get_minor_version() >= 14) {

bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/org/eclipse/swt/internal/webkit/WebKitGTK.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,8 @@ public class WebKitGTK extends C {
147147

148148
public static final byte[] enable_webgl = ascii("enable-webgl"); // $NON-NLS-1$
149149

150+
public static final byte[] hardware_acceleration_policy = ascii("hardware-acceleration-policy"); // $NON-NLS-1$
151+
150152
public static final byte[] enable_back_forward_navigation_gestures = ascii("enable-back-forward-navigation-gestures"); // $NON-NLS-1$
151153

152154
// Since 2.14

0 commit comments

Comments
 (0)