File webkit-process.patch of Package webkit2gtk3.18327
diff -urp webkitgtk-2.30.3.orig/Source/WebKit/UIProcess/API/glib/WebKitWebContext.cpp webkitgtk-2.30.3/Source/WebKit/UIProcess/API/glib/WebKitWebContext.cpp
--- webkitgtk-2.30.3.orig/Source/WebKit/UIProcess/API/glib/WebKitWebContext.cpp 2020-09-18 03:34:08.000000000 -0500
+++ webkitgtk-2.30.3/Source/WebKit/UIProcess/API/glib/WebKitWebContext.cpp 2020-11-20 16:25:05.830587831 -0600
@@ -397,8 +397,16 @@ static void webkitWebContextConstructed(
configuration.setProcessSwapsOnNavigation(priv->psonEnabled);
if (!priv->psonEnabled) {
const char* useSingleWebProcess = getenv("WEBKIT_USE_SINGLE_WEB_PROCESS");
- if (useSingleWebProcess && strcmp(useSingleWebProcess, "0"))
- configuration.setUsesSingleWebProcess(true);
+ if (useSingleWebProcess) {
+ if (strcmp(useSingleWebProcess, "0")) {
+ configuration.setUsesSingleWebProcess(true);
+ }
+ } else {
+ const char* prgname = g_get_prgname();
+ if (!g_strcmp0(prgname, "evolution") || !g_strcmp0(prgname, "geary")) {
+ configuration.setUsesSingleWebProcess(true);
+ }
+ }
}
#if !USE(GTK4)