From c17ea7a0fa2399563f65c6239f5749d5fa5a4063 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Mon, 25 Apr 2022 16:17:58 +0200 Subject: [PATCH] Resolves: #2078369 (Disable hardware acceleration for WebKitGTK) --- evolution.spec | 6 +++++- webkitgtk-2.36.0-disable-hw-accel.patch | 27 +++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 webkitgtk-2.36.0-disable-hw-accel.patch diff --git a/evolution.spec b/evolution.spec index 5836450..dbd97a1 100644 --- a/evolution.spec +++ b/evolution.spec @@ -43,7 +43,7 @@ Name: evolution Version: 3.40.4 -Release: 5%{?dist} +Release: 6%{?dist} Summary: Mail and calendar client for GNOME License: GPLv2+ and GFDL URL: https://wiki.gnome.org/Apps/Evolution @@ -56,6 +56,7 @@ Patch01: evolution-3.40.4-empty-emoji-picker.patch Patch02: evolution-3.40.4-comp-editor-timezone-reset.patch Patch03: evolution-3.40.4-google-contacts-to-carddav.patch Patch04: webkitgtk-2.36.0-dark-theme.patch +Patch05: webkitgtk-2.36.0-disable-hw-accel.patch # Approximate version number Provides: bundled(libgnomecanvas) = 2.30.0 @@ -571,6 +572,9 @@ grep -v "%{_datadir}/locale" evolution.lang > help.lang %endif %changelog +* Mon Apr 25 2022 Milan Crha - 3.40.4-6 +- Resolves: #2078369 (Disable hardware acceleration for WebKitGTK) + * Fri Apr 08 2022 Milan Crha - 3.40.4-5 - Related: #2071056 (Update zh_CN and ja translations in the patch) diff --git a/webkitgtk-2.36.0-disable-hw-accel.patch b/webkitgtk-2.36.0-disable-hw-accel.patch new file mode 100644 index 0000000..e669f43 --- /dev/null +++ b/webkitgtk-2.36.0-disable-hw-accel.patch @@ -0,0 +1,27 @@ +From eb62ccaa28bbbca7668913ce7d8056a6d75f9b05 Mon Sep 17 00:00:00 2001 +From: Milan Crha +Date: Thu, 21 Apr 2022 16:59:34 +0200 +Subject: [PATCH] Disable hardware acceleration for WebKitGTK + +This should help with crashes related to hardware acceleration +on some machines, as being discussed at: +https://bugs.webkit.org/show_bug.cgi?id=239429 +--- + src/e-util/e-web-view.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/e-util/e-web-view.c b/src/e-util/e-web-view.c +index 9ab13b69cc..68f86e8c59 100644 +--- a/src/e-util/e-web-view.c ++++ b/src/e-util/e-web-view.c +@@ -3617,6 +3617,7 @@ e_web_view_get_default_webkit_settings (void) + "enable-plugins", FALSE, + "enable-smooth-scrolling", FALSE, + "media-playback-allows-inline", FALSE, ++ "hardware-acceleration-policy", WEBKIT_HARDWARE_ACCELERATION_POLICY_NEVER, + NULL); + + e_web_view_utils_apply_minimum_font_size (settings); +-- +GitLab +