webkit2gtk3/SOURCES/evolution-shared-secondary-process.patch

14 lines
794 B
Diff
Raw Normal View History

2020-11-03 11:45:31 +00:00
diff --git a/Source/WebKit/UIProcess/API/glib/WebKitWebContext.cpp b/Source/WebKit/UIProcess/API/glib/WebKitWebContext.cpp
2021-05-18 06:51:59 +00:00
index af43f9acfd24..3ac762417a98 100644
2020-11-03 11:45:31 +00:00
--- a/Source/WebKit/UIProcess/API/glib/WebKitWebContext.cpp
+++ b/Source/WebKit/UIProcess/API/glib/WebKitWebContext.cpp
2021-05-18 06:51:59 +00:00
@@ -397,7 +397,7 @@ static void webkitWebContextConstructed(GObject* object)
configuration.setProcessSwapsOnNavigation(priv->psonEnabled);
if (!priv->psonEnabled) {
2020-11-03 11:45:31 +00:00
const char* useSingleWebProcess = getenv("WEBKIT_USE_SINGLE_WEB_PROCESS");
2021-05-18 06:51:59 +00:00
- if (useSingleWebProcess && strcmp(useSingleWebProcess, "0"))
+ if ((useSingleWebProcess && strcmp(useSingleWebProcess, "0")) || !g_strcmp0(g_get_prgname(), "evolution"))
2020-11-03 11:45:31 +00:00
configuration.setUsesSingleWebProcess(true);
}