Changeset 181392 in webkit


Ignore:
Timestamp:
Mar 11, 2015 10:47:38 AM (9 years ago)
Author:
Carlos Garcia Campos
Message:

[GTK] Do not look for child processes in the UI process binary path
https://bugs.webkit.org/show_bug.cgi?id=135752

Reviewed by Gustavo Noronha Silva.

.:

  • Source/cmake/OptionsGTK.cmake: Add -DDEVELOPMENT_BUILD=1 to the

build for development builds.

Source/WebKit2:

It's only useful for internal tools and tests, but never when
installed, since we don't install the processes in the bin dir but
in the libexec dir.

  • Shared/gtk/ProcessExecutablePathGtk.cpp:

(WebKit::findWebKitProcess): Only look or the executables in the
UI process binary path or WEBKIT_EXEC_PATH for development builds.

  • UIProcess/API/gtk/WebKitWebContext.cpp:

(injectedBundleDirectory): Only check
WEBKIT_INJECTED_BUNDLE_PATH env var for development builds.

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r181321 r181392  
     12015-03-11  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        [GTK] Do not look for child processes in the UI process binary path
     4        https://bugs.webkit.org/show_bug.cgi?id=135752
     5
     6        Reviewed by Gustavo Noronha Silva.
     7
     8        * Source/cmake/OptionsGTK.cmake: Add -DDEVELOPMENT_BUILD=1 to the
     9        build for development builds.
     10
    1112015-03-10  Carlos Garcia Campos  <cgarcia@igalia.com> and José Dapena Paz  <jdapena@igalia.com>
    212
  • trunk/Source/WebKit2/ChangeLog

    r181364 r181392  
     12015-03-11  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        [GTK] Do not look for child processes in the UI process binary path
     4        https://bugs.webkit.org/show_bug.cgi?id=135752
     5
     6        Reviewed by Gustavo Noronha Silva.
     7
     8        It's only useful for internal tools and tests, but never when
     9        installed, since we don't install the processes in the bin dir but
     10        in the libexec dir.
     11
     12        * Shared/gtk/ProcessExecutablePathGtk.cpp:
     13        (WebKit::findWebKitProcess): Only look or the executables in the
     14        UI process binary path or WEBKIT_EXEC_PATH for development builds.
     15        * UIProcess/API/gtk/WebKitWebContext.cpp:
     16        (injectedBundleDirectory): Only check
     17        WEBKIT_INJECTED_BUNDLE_PATH env var for development builds.
     18
    1192015-03-10  Antti Koivisto  <antti@apple.com>
    220
  • trunk/Source/WebKit2/Shared/gtk/ProcessExecutablePathGtk.cpp

    r179007 r181392  
    3030#include <WebCore/FileSystem.h>
    3131#include <glib.h>
     32
     33#if defined(DEVELOPMENT_BUILD)
    3234#include <wtf/gobject/GlibUtilities.h>
     35#endif
    3336
    3437using namespace WebCore;
     
    3639namespace WebKit {
    3740
     41#if defined(DEVELOPMENT_BUILD)
    3842static String getExecutablePath()
    3943{
     
    4347    return String();
    4448}
     49#endif
    4550
    4651static String findWebKitProcess(const char* processName)
    4752{
     53#if defined(DEVELOPMENT_BUILD)
    4854    static const char* execDirectory = g_getenv("WEBKIT_EXEC_PATH");
    4955    if (execDirectory) {
     
    5965            return processPath;
    6066    }
     67#endif
    6168
    6269    return pathByAppendingComponent(filenameToString(LIBEXECDIR), processName);
  • trunk/Source/WebKit2/UIProcess/API/gtk/WebKitWebContext.cpp

    r180921 r181392  
    219219static const char* injectedBundleDirectory()
    220220{
     221#if defined(DEVELOPMENT_BUILD)
    221222    const char* bundleDirectory = g_getenv("WEBKIT_INJECTED_BUNDLE_PATH");
    222223    if (bundleDirectory && g_file_test(bundleDirectory, G_FILE_TEST_IS_DIR))
    223224        return bundleDirectory;
     225#endif
    224226
    225227    static const char* injectedBundlePath = LIBDIR G_DIR_SEPARATOR_S "webkit2gtk-" WEBKITGTK_API_VERSION_STRING
  • trunk/Source/cmake/OptionsGTK.cmake

    r181321 r181392  
    249249add_definitions(-DWEBKITGTK_API_VERSION_STRING="${WEBKITGTK_API_VERSION}")
    250250
     251if (DEVELOPER_MODE)
     252    add_definitions(-DDEVELOPMENT_BUILD=1)
     253endif ()
     254
    251255if (ENABLE_VIDEO OR ENABLE_WEB_AUDIO)
    252256    set(GSTREAMER_COMPONENTS app pbutils)
Note: See TracChangeset for help on using the changeset viewer.