Commit 04da2a5b authored by kbalazs@webkit.org's avatar kbalazs@webkit.org

[Qt][WK2] Crash in WebPage constructor.

https://bugs.webkit.org/show_bug.cgi?id=50892

Reviewed by Andreas Kling.

* WebProcess/qt/WebProcessQt.cpp:
(WebKit::WebProcess::platformInitializeWebProcess):
Disable runtime enabled features that have no WebKit2 implementation yet.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73876 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 2ed84233
2010-12-12 Balazs Kelemen <kbalazs@webkit.org>
Reviewed by Andreas Kling.
[Qt][WK2] Crash in WebPage constructor.
https://bugs.webkit.org/show_bug.cgi?id=50892
* WebProcess/qt/WebProcessQt.cpp:
(WebKit::WebProcess::platformInitializeWebProcess):
Disable runtime enabled features that have no WebKit2 implementation yet.
2010-12-10 Jon Honeycutt <jhoneycutt@apple.com>
Select menus with short option titles do not paint properly
......@@ -26,6 +26,7 @@
#include "WebProcess.h"
#include "WebProcessCreationParameters.h"
#include <WebCore/RuntimeEnabledFeatures.h>
#include <QNetworkAccessManager>
namespace WebKit {
......@@ -42,6 +43,15 @@ void WebProcess::platformClearResourceCaches()
void WebProcess::platformInitializeWebProcess(const WebProcessCreationParameters& parameters, CoreIPC::ArgumentDecoder* arguments)
{
m_networkAccessManager = new QNetworkAccessManager;
// Disable runtime enabled features that have no WebKit2 implementation yet.
#if ENABLE(DEVICE_ORIENTATION)
WebCore::RuntimeEnabledFeatures::setDeviceMotionEnabled(false);
WebCore::RuntimeEnabledFeatures::setDeviceOrientationEnabled(false);
#endif
#if ENABLE(SPEECH_INPUT)
WebCore::RuntimeEnabledFeatures::setSpeechInputEnabled(false);
#endif
}
void WebProcess::platformShutdown()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment