[Qt][WK2] Crash in WebPage constructor.
authorkbalazs@webkit.org <kbalazs@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 12 Dec 2010 16:25:50 +0000 (16:25 +0000)
committerkbalazs@webkit.org <kbalazs@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 12 Dec 2010 16:25:50 +0000 (16:25 +0000)
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: https://svn.webkit.org/repository/webkit/trunk@73876 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKit2/ChangeLog
WebKit2/WebProcess/qt/WebProcessQt.cpp

index 1908047..9ed6443 100644 (file)
@@ -1,3 +1,14 @@
+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
index 81fb935..53a51d3 100644 (file)
@@ -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()