[evolution/gnome-43] I#2083 - Enable sandboxing for WebKitGTK 2.38.0+



commit 68da8385f04e5bce940d1b0bc097a11f5bca40e0
Author: Milan Crha <mcrha redhat com>
Date:   Wed Oct 19 07:40:19 2022 +0200

    I#2083 - Enable sandboxing for WebKitGTK 2.38.0+
    
    The printing bug had been fixed for WebKitGTK 2.38.0, thus enable
    sandboxing for that and later versions.
    
    Closes https://gitlab.gnome.org/GNOME/evolution/-/issues/2083

 src/shell/main.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/src/shell/main.c b/src/shell/main.c
index 566f629439..bccfec2e1e 100644
--- a/src/shell/main.c
+++ b/src/shell/main.c
@@ -569,9 +569,12 @@ main (gint argc,
                return 0;
        }
 
-       /* Disable sandboxing to enable printing, until WebKitGTK is fixed:
-          https://bugs.webkit.org/show_bug.cgi?id=202363 */
-       g_setenv ("WEBKIT_FORCE_SANDBOX", "0", FALSE);
+       /* The bug is fixed in 2.38.0, thus disable sandboxing only for previous versions */
+       if (webkit_get_major_version () < 2 || (webkit_get_major_version () == 2 && webkit_get_minor_version 
() < 38)) {
+               /* Disable sandboxing to enable printing, until WebKitGTK is fixed:
+                  https://bugs.webkit.org/show_bug.cgi?id=202363 */
+               g_setenv ("WEBKIT_FORCE_SANDBOX", "0", FALSE);
+       }
 
        /* Pre-cache list of supported locales */
        e_util_enum_supported_locales ();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]