Changeset 121686 in webkit


Ignore:
Timestamp:
Jul 2, 2012 9:31:10 AM (12 years ago)
Author:
alexis.menard@openbossa.org
Message:

[Qt] Fix WebProcess crash on Mac when accessing a site with video tag.
https://bugs.webkit.org/show_bug.cgi?id=90384

Reviewed by Jocelyn Turcotte.

We need to initialize the private symbols used by MediaPlayerPrivateQTKit
otherwise they will be null and it will lead to a crash. We copy WebSystemInterface
files for WK2 just like the Mac port as WK2 may have different needs than WK1 layer (we
may add or remove symbols in here). It doesn't fix the video rendering yet but it's
first step.

  • Target.pri:
  • WebProcess/WebCoreSupport/qt/WebSystemInterface.h: Added.
  • WebProcess/WebCoreSupport/qt/WebSystemInterface.mm: Added.

(InitWebCoreSystemInterfaceForWK2):

  • WebProcess/qt/WebProcessMainQt.cpp:

(WebKit::WebProcessMainQt):

Location:
trunk/Source/WebKit2
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r121682 r121686  
     12012-07-02  Alexis Menard  <alexis.menard@openbossa.org>
     2
     3        [Qt] Fix WebProcess crash on Mac when accessing a site with video tag.
     4        https://bugs.webkit.org/show_bug.cgi?id=90384
     5
     6        Reviewed by Jocelyn Turcotte.
     7
     8        We need to initialize the private symbols used by MediaPlayerPrivateQTKit
     9        otherwise they will be null and it will lead to a crash. We copy WebSystemInterface
     10        files for WK2 just like the Mac port as WK2 may have different needs than WK1 layer (we
     11        may add or remove symbols in here). It doesn't fix the video rendering yet but it's
     12        first step.
     13
     14        * Target.pri:
     15        * WebProcess/WebCoreSupport/qt/WebSystemInterface.h: Added.
     16        * WebProcess/WebCoreSupport/qt/WebSystemInterface.mm: Added.
     17        (InitWebCoreSystemInterfaceForWK2):
     18        * WebProcess/qt/WebProcessMainQt.cpp:
     19        (WebKit::WebProcessMainQt):
     20
    1212012-07-02  Sudarsana Nagineni  <sudarsana.nagineni@linux.intel.com>
    222
  • trunk/Source/WebKit2/Target.pri

    r121620 r121686  
    772772
    773773mac: {
     774
     775    contains(DEFINES, WTF_USE_QTKIT=1) {
     776        DEFINES += NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES
     777        INCLUDEPATH += \
     778            $$PWD/../../WebKitLibraries/
     779        HEADERS += \
     780            WebProcess/WebCoreSupport/qt/WebSystemInterface.h
     781        SOURCES += \
     782            WebProcess/WebCoreSupport/qt/WebSystemInterface.mm
     783    }
    774784    INCLUDEPATH += \
    775785        Platform/mac \
  • trunk/Source/WebKit2/WebProcess/qt/WebProcessMainQt.cpp

    r115958 r121686  
    4040#if USE(ACCELERATED_COMPOSITING)
    4141#include "WebGraphicsLayer.h"
     42#endif
     43#if USE(QTKIT)
     44#include "WebSystemInterface.h"
    4245#endif
    4346
     
    149152    WTF::initializeMainThread();
    150153    RunLoop::initializeMainRunLoop();
     154   
     155#if USE(QTKIT)
     156    InitWebCoreSystemInterfaceForWK2();
     157#endif
    151158
    152159    // Create the connection.
Note: See TracChangeset for help on using the changeset viewer.