Skip to content

Commit

Permalink
Disable WebkitGtk hardware-acceleration
Browse files Browse the repository at this point in the history
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
)
  • Loading branch information
akurtakov committed Mar 28, 2024
1 parent 9d9bee6 commit d76f147
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -741,6 +741,9 @@ public void create (Composite parent, int style) {
OS.g_object_set (settings, WebKitGTK.javascript_can_open_windows_automatically, 1, 0);
OS.g_object_set (settings, WebKitGTK.enable_webgl, 1, 0);
OS.g_object_set (settings, WebKitGTK.enable_developer_extras, 1, 0);
//disable hardware acceleration due to https://bugs.webkit.org/show_bug.cgi?id=239429#c11
//even evolution ended up doing the same https://gitlab.gnome.org/GNOME/evolution/-/commit/eb62ccaa28bbbca7668913ce7d8056a6d75f9b05
OS.g_object_set (settings, WebKitGTK.hardware_acceleration_policy, 2, 0);

OS.g_object_set (settings, WebKitGTK.default_charset, utfBytes, 0);
if (WebKitGTK.webkit_get_minor_version() >= 14) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ public class WebKitGTK extends C {

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

public static final byte[] hardware_acceleration_policy = ascii("hardware-acceleration-policy"); // $NON-NLS-1$

public static final byte[] enable_back_forward_navigation_gestures = ascii("enable-back-forward-navigation-gestures"); // $NON-NLS-1$

// Since 2.14
Expand Down

0 comments on commit d76f147

Please sign in to comment.