Changeset 172385 in webkit


Ignore:
Timestamp:
Aug 10, 2014 11:34:39 PM (10 years ago)
Author:
Carlos Garcia Campos
Message:

[GTK] No IPC messages are sent when building WebKitGTK+ with VERSION_SCRIPT
https://bugs.webkit.org/show_bug.cgi?id=135760

Reviewed by Philippe Normand.

The problem is that the threading initialization is failing
because there are two copies of WTF, one in libjavascriptcoregtk
and the other in libwebkit2gtk. When WebKit2 is initialized in the
UI process, JSC::initializeThreading() is called first and then
WTF::initializeMainThread(). The former is calling
ThreadIdentifierData::initializeOnce() initializing the
ThreadIdentifierData::m_key symbol in libjavascriptcoregtk, while
the latter is using the ThreadIdentifierData API from libwebkit2gtk
that hasn't been initialized.

  • CMakeLists.txt: Do not add WTF to the list of WebKit2 libraries,

WebKit2 already depends on JavaScriptCore that already links to WTF.

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/CMakeLists.txt

    r172377 r172385  
    665665set(WebKit2_LIBRARIES
    666666    JavaScriptCore
    667     WTF
    668667    WebCore
    669668)
  • trunk/Source/WebKit2/ChangeLog

    r172383 r172385  
     12014-08-10  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        [GTK] No IPC messages are sent when building WebKitGTK+ with VERSION_SCRIPT
     4        https://bugs.webkit.org/show_bug.cgi?id=135760
     5
     6        Reviewed by Philippe Normand.
     7
     8        The problem is that the threading initialization is failing
     9        because there are two copies of WTF, one in libjavascriptcoregtk
     10        and the other in libwebkit2gtk. When WebKit2 is initialized in the
     11        UI process, JSC::initializeThreading() is called first and then
     12        WTF::initializeMainThread(). The former is calling
     13        ThreadIdentifierData::initializeOnce() initializing the
     14        ThreadIdentifierData::m_key symbol in libjavascriptcoregtk, while
     15        the latter is using the ThreadIdentifierData API from libwebkit2gtk
     16        that hasn't been initialized.
     17
     18        * CMakeLists.txt: Do not add WTF to the list of WebKit2 libraries,
     19        WebKit2 already depends on JavaScriptCore that already links to WTF.
     20
    1212014-08-10  Tim Horton  <timothy_horton@apple.com>
    222
Note: See TracChangeset for help on using the changeset viewer.