Title: [255669] releases/WebKitGTK/webkit-2.28/Source/WebKit
Revision
255669
Author
[email protected]
Date
2020-02-04 04:12:17 -0800 (Tue, 04 Feb 2020)

Log Message

Unreviewed. [GTK] Add an env var to force single process model

WEBKIT_USE_SINGLE_WEB_PROCESS=1 can be used to force the single process model when PSON is disabled. This is a
temporary solution for applications still depending on the single process mode behavior. It will be only
available in 2.28 series.

* UIProcess/API/glib/WebKitWebContext.cpp:
(webkitWebContextConstructed):

Modified Paths

Diff

Modified: releases/WebKitGTK/webkit-2.28/Source/WebKit/ChangeLog (255668 => 255669)


--- releases/WebKitGTK/webkit-2.28/Source/WebKit/ChangeLog	2020-02-04 10:57:44 UTC (rev 255668)
+++ releases/WebKitGTK/webkit-2.28/Source/WebKit/ChangeLog	2020-02-04 12:12:17 UTC (rev 255669)
@@ -1,3 +1,14 @@
+2020-02-04  Carlos Garcia Campos  <[email protected]>
+
+        Unreviewed. [GTK] Add an env var to force single process model
+
+        WEBKIT_USE_SINGLE_WEB_PROCESS=1 can be used to force the single process model when PSON is disabled. This is a
+        temporary solution for applications still depending on the single process mode behavior. It will be only
+        available in 2.28 series.
+
+        * UIProcess/API/glib/WebKitWebContext.cpp:
+        (webkitWebContextConstructed):
+
 2020-02-04  Fujii Hironori  <[email protected]>
 
         [Win][Clang] WebProcessMain.h(28,14): error: token is not a valid binary operator in a preprocessor subexpression

Modified: releases/WebKitGTK/webkit-2.28/Source/WebKit/UIProcess/API/glib/WebKitWebContext.cpp (255668 => 255669)


--- releases/WebKitGTK/webkit-2.28/Source/WebKit/UIProcess/API/glib/WebKitWebContext.cpp	2020-02-04 10:57:44 UTC (rev 255668)
+++ releases/WebKitGTK/webkit-2.28/Source/WebKit/UIProcess/API/glib/WebKitWebContext.cpp	2020-02-04 12:12:17 UTC (rev 255669)
@@ -377,6 +377,11 @@
     configuration.setInjectedBundlePath(FileSystem::stringFromFileSystemRepresentation(bundleFilename.get()));
 #if PLATFORM(GTK)
     configuration.setProcessSwapsOnNavigation(priv->psonEnabled);
+    if (!priv->psonEnabled) {
+        const char* useSingleWebProcess = getenv("WEBKIT_USE_SINGLE_WEB_PROCESS");
+        if (useSingleWebProcess && strcmp(useSingleWebProcess, "0"))
+            configuration.setUsesSingleWebProcess(true);
+    }
 #endif
 
     if (!priv->websiteDataManager)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to