Index: webkit/support/webkit_support.cc |
diff --git a/webkit/support/webkit_support.cc b/webkit/support/webkit_support.cc |
index bc3264ba5cb42b89c1e13b21565e0c79cb38062b..19ce2784a9f00a0a057f331b1b1cb8af6ecd6eae 100644 |
--- a/webkit/support/webkit_support.cc |
+++ b/webkit/support/webkit_support.cc |
@@ -36,6 +36,7 @@ |
#include "third_party/WebKit/public/web/WebFileSystemCallbacks.h" |
#include "third_party/WebKit/public/web/WebKit.h" |
#include "third_party/WebKit/public/web/WebPluginParams.h" |
+#include "third_party/WebKit/public/web/WebRuntimeFeatures.h" |
#include "third_party/WebKit/public/web/WebView.h" |
#include "third_party/WebKit/public/platform/WebStorageNamespace.h" |
#include "third_party/WebKit/public/platform/WebURLError.h" |
@@ -268,6 +269,10 @@ void SetUpTestEnvironmentForUnitTests() { |
const char* kFixedArguments[] = {"DumpRenderTree"}; |
CommandLine::Init(arraysize(kFixedArguments), kFixedArguments); |
+ WebKit::WebRuntimeFeatures::enableStableFeatures(true); |
+ WebKit::WebRuntimeFeatures::enableExperimentalFeatures(true); |
+ WebKit::WebRuntimeFeatures::enableTestOnlyFeatures(true); |
+ |
// Explicitly initialize the GURL library before spawning any threads. |
// Otherwise crash may happend when different threads try to create a GURL |
// at same time. |