[Qt] Fix WebProcess crash on Mac when accessing a site with video tag.
authoralexis.menard@openbossa.org <alexis.menard@openbossa.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 2 Jul 2012 16:31:10 +0000 (16:31 +0000)
committeralexis.menard@openbossa.org <alexis.menard@openbossa.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 2 Jul 2012 16:31:10 +0000 (16:31 +0000)
commit948bd8eeeb4de860c9f3a27011e3a1c6fa6d962c
tree03e41c89367061dc41dbe15f10746e6f6c8d9bf0
parent99eee6fda5a61aa66a26cc65739d3d762acf5665
[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):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@121686 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit2/ChangeLog
Source/WebKit2/Target.pri
Source/WebKit2/WebProcess/WebCoreSupport/qt/WebSystemInterface.h [new file with mode: 0644]
Source/WebKit2/WebProcess/WebCoreSupport/qt/WebSystemInterface.mm [new file with mode: 0644]
Source/WebKit2/WebProcess/qt/WebProcessMainQt.cpp