Changeset 160373 in webkit


Ignore:
Timestamp:
Dec 10, 2013 10:49:42 AM (10 years ago)
Author:
berto@igalia.com
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):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r160371 r160373  
     12013-12-10  Alberto Garcia  <berto@igalia.com>
     2
     3        [WK2] [SOUP] Allow running the network process with an arbitrary prefix command
     4        https://bugs.webkit.org/show_bug.cgi?id=125520
     5
     6        Reviewed by Carlos Garcia Campos.
     7
     8        Launch the network process using NETWORK_PROCESS_CMD_PREFIX as a
     9        prefix. Useful for debugging the web process with gdb, valgrind,
     10        etc.
     11
     12        * UIProcess/Network/soup/NetworkProcessProxySoup.cpp:
     13        (WebKit::NetworkProcessProxy::platformGetLaunchOptions):
     14
    1152013-12-10  Kwang Yul Seo  <skyul@company100.net>
    216
  • trunk/Source/WebKit2/UIProcess/Network/soup/NetworkProcessProxySoup.cpp

    r157254 r160373  
    2828
    2929#include "NetworkProcessProxy.h"
     30#include <glib.h>
    3031
    3132namespace WebKit {
     
    3334void NetworkProcessProxy::platformGetLaunchOptions(ProcessLauncher::LaunchOptions& launchOptions)
    3435{
     36#ifndef NDEBUG
     37    const char* networkProcessCmdPrefix = g_getenv("NETWORK_PROCESS_CMD_PREFIX");
     38    if (networkProcessCmdPrefix && *networkProcessCmdPrefix)
     39        launchOptions.processCmdPrefix = String::fromUTF8(networkProcessCmdPrefix);
     40#else
     41    UNUSED_PARAM(launchOptions);
     42#endif
    3543}
    3644
Note: See TracChangeset for help on using the changeset viewer.