forked from pool/webkit2gtk3
Dominique Leuenberger
6e7c26751f
- Update to version 2.30.3 (boo#1179122): OBS-URL: https://build.opensuse.org/request/show/850518 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/webkit2gtk3?expand=0&rev=276
23 lines
1.2 KiB
Diff
23 lines
1.2 KiB
Diff
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)
|