Title: [183101] trunk/Tools
Revision
183101
Author
[email protected]
Date
2015-04-22 05:13:22 -0700 (Wed, 22 Apr 2015)

Log Message

[GTK] MiniBrowser should use NetworkProcess by default
https://bugs.webkit.org/show_bug.cgi?id=143948

Reviewed by Sergio Villar Senin.

Use WEBKIT_PROCESS_MODEL_MULTIPLE_SECONDARY_PROCESSES by default
unless MINIBROWSER_SINGLEPROCESS environment variable is present.

* MiniBrowser/gtk/main.c:
(main):

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (183100 => 183101)


--- trunk/Tools/ChangeLog	2015-04-22 10:31:24 UTC (rev 183100)
+++ trunk/Tools/ChangeLog	2015-04-22 12:13:22 UTC (rev 183101)
@@ -1,3 +1,16 @@
+2015-04-22  Carlos Garcia Campos  <[email protected]>
+
+        [GTK] MiniBrowser should use NetworkProcess by default
+        https://bugs.webkit.org/show_bug.cgi?id=143948
+
+        Reviewed by Sergio Villar Senin.
+
+        Use WEBKIT_PROCESS_MODEL_MULTIPLE_SECONDARY_PROCESSES by default
+        unless MINIBROWSER_SINGLEPROCESS environment variable is present.
+
+        * MiniBrowser/gtk/main.c:
+        (main):
+
 2015-04-21  Matthew Hanson  <[email protected]>
 
         Use grep instead of any in prepare-ChangeLog, to avoid Windows compatibility issues.

Modified: trunk/Tools/MiniBrowser/gtk/main.c (183100 => 183101)


--- trunk/Tools/MiniBrowser/gtk/main.c	2015-04-22 10:31:24 UTC (rev 183100)
+++ trunk/Tools/MiniBrowser/gtk/main.c	2015-04-22 12:13:22 UTC (rev 183101)
@@ -260,11 +260,9 @@
     g_setenv("WEBKIT_INJECTED_BUNDLE_PATH", WEBKIT_INJECTED_BUNDLE_PATH, FALSE);
 #endif
 
-    const gchar *multiprocess = g_getenv("MINIBROWSER_MULTIPROCESS");
-    if (multiprocess && *multiprocess) {
-        webkit_web_context_set_process_model(webkit_web_context_get_default(),
-            WEBKIT_PROCESS_MODEL_MULTIPLE_SECONDARY_PROCESSES);
-    }
+    const gchar *singleprocess = g_getenv("MINIBROWSER_SINGLEPROCESS");
+    webkit_web_context_set_process_model(webkit_web_context_get_default(), (singleprocess && *singleprocess) ?
+        WEBKIT_PROCESS_MODEL_SHARED_SECONDARY_PROCESS : WEBKIT_PROCESS_MODEL_MULTIPLE_SECONDARY_PROCESSES);
 
     GOptionContext *context = g_option_context_new(NULL);
     g_option_context_add_main_entries(context, commandLineOptions, 0);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to