Title: [160373] trunk/Source/WebKit2
- Revision
- 160373
- Author
- be...@igalia.com
- Date
- 2013-12-10 10:49:42 -0800 (Tue, 10 Dec 2013)
Log Message
[WK2] [SOUP] Allow running the network process with an arbitrary prefix command
https://bugs.webkit.org/show_bug.cgi?id=125520
Reviewed by Carlos Garcia Campos.
Launch the network process using NETWORK_PROCESS_CMD_PREFIX as a
prefix. Useful for debugging the web process with gdb, valgrind,
etc.
* UIProcess/Network/soup/NetworkProcessProxySoup.cpp:
(WebKit::NetworkProcessProxy::platformGetLaunchOptions):
Modified Paths
Diff
Modified: trunk/Source/WebKit2/ChangeLog (160372 => 160373)
--- trunk/Source/WebKit2/ChangeLog 2013-12-10 17:47:56 UTC (rev 160372)
+++ trunk/Source/WebKit2/ChangeLog 2013-12-10 18:49:42 UTC (rev 160373)
@@ -1,3 +1,17 @@
+2013-12-10 Alberto Garcia <be...@igalia.com>
+
+ [WK2] [SOUP] Allow running the network process with an arbitrary prefix command
+ https://bugs.webkit.org/show_bug.cgi?id=125520
+
+ Reviewed by Carlos Garcia Campos.
+
+ Launch the network process using NETWORK_PROCESS_CMD_PREFIX as a
+ prefix. Useful for debugging the web process with gdb, valgrind,
+ etc.
+
+ * UIProcess/Network/soup/NetworkProcessProxySoup.cpp:
+ (WebKit::NetworkProcessProxy::platformGetLaunchOptions):
+
2013-12-10 Kwang Yul Seo <sk...@company100.net>
Allow us to use network process with a single process model
Modified: trunk/Source/WebKit2/UIProcess/Network/soup/NetworkProcessProxySoup.cpp (160372 => 160373)
--- trunk/Source/WebKit2/UIProcess/Network/soup/NetworkProcessProxySoup.cpp 2013-12-10 17:47:56 UTC (rev 160372)
+++ trunk/Source/WebKit2/UIProcess/Network/soup/NetworkProcessProxySoup.cpp 2013-12-10 18:49:42 UTC (rev 160373)
@@ -27,11 +27,19 @@
#if ENABLE(NETWORK_PROCESS)
#include "NetworkProcessProxy.h"
+#include <glib.h>
namespace WebKit {
void NetworkProcessProxy::platformGetLaunchOptions(ProcessLauncher::LaunchOptions& launchOptions)
{
+#ifndef NDEBUG
+ const char* networkProcessCmdPrefix = g_getenv("NETWORK_PROCESS_CMD_PREFIX");
+ if (networkProcessCmdPrefix && *networkProcessCmdPrefix)
+ launchOptions.processCmdPrefix = String::fromUTF8(networkProcessCmdPrefix);
+#else
+ UNUSED_PARAM(launchOptions);
+#endif
}
}
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes