webkit2gtk3/evolution-sandbox-warning.patch
Michael Catanzaro f695aaccda Update to 2.50.0
Resolves: RHEL-116356
Resolves: RHEL-116903
Resolves: RHEL-116916
Resolves: RHEL-116929
Resolves: RHEL-116942
2025-10-07 12:34:20 -05:00

27 lines
1.2 KiB
Diff

From 01c16493deb6dab8e04adfcdd244aaad3067d434 Mon Sep 17 00:00:00 2001
From: Michael Catanzaro <mcatanzaro@redhat.com>
Date: Tue, 7 Oct 2025 11:19:06 -0500
Subject: [PATCH] Suppress warning about WEBKIT_FORCE_SANDBOX for Evolution
---
Source/WebKit/UIProcess/glib/WebProcessPoolGLib.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/Source/WebKit/UIProcess/glib/WebProcessPoolGLib.cpp b/Source/WebKit/UIProcess/glib/WebProcessPoolGLib.cpp
index 044ddc0c3e95..a953dda3dcb8 100644
--- a/Source/WebKit/UIProcess/glib/WebProcessPoolGLib.cpp
+++ b/Source/WebKit/UIProcess/glib/WebProcessPoolGLib.cpp
@@ -155,7 +155,8 @@ void WebProcessPool::platformInitialize(NeedsGlobalStaticInitialization)
else {
static bool once = false;
if (!once) {
- g_warning("WEBKIT_FORCE_SANDBOX no longer allows disabling the sandbox. Use WEBKIT_DISABLE_SANDBOX_THIS_IS_DANGEROUS=1 instead.");
+ if (g_strcmp0(g_get_prgname(), "evolution"))
+ g_warning("WEBKIT_FORCE_SANDBOX no longer allows disabling the sandbox. Use WEBKIT_DISABLE_SANDBOX_THIS_IS_DANGEROUS=1 instead.");
once = true;
}
}
--
2.51.0