Attempt to fix the tests.
authorweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 27 Dec 2012 18:57:59 +0000 (18:57 +0000)
committerweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 27 Dec 2012 18:57:59 +0000 (18:57 +0000)
* WebView/WebPreferences.mm:
(+[WebPreferences initialize]):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@138510 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit/mac/ChangeLog
Source/WebKit/mac/WebView/WebPreferences.mm

index 7782f21..b536bde 100644 (file)
@@ -1,3 +1,10 @@
+2012-12-27  Sam Weinig  <sam@webkit.org>
+
+        Attempt to fix the tests.
+
+        * WebView/WebPreferences.mm:
+        (+[WebPreferences initialize]):
+
 2012-12-23  Alexey Proskuryakov  <ap@apple.com>
 
         <rdar://problem/12808377> Network process should respect cookie accept policy
index f4b1b54..030a3d2 100644 (file)
@@ -43,6 +43,9 @@
 #import <WebCore/ApplicationCacheStorage.h>
 #import <WebCore/NetworkStorageSession.h>
 #import <WebCore/ResourceHandle.h>
+#import <WebCore/RunLoop.h>
+#import <runtime/InitializeThreading.h>
+#import <wtf/MainThread.h>
 #import <wtf/RetainPtr.h>
 
 using namespace WebCore;
@@ -304,6 +307,10 @@ public:
 // if we ever have more than one WebPreferences object, this would move to init
 + (void)initialize
 {
+    JSC::initializeThreading();
+    WTF::initializeMainThreadToProcessMainThread();
+    WebCore::RunLoop::initializeMainRunLoop();
+
     NSDictionary *dict = [NSDictionary dictionaryWithObjectsAndKeys:
         @"Times",                       WebKitStandardFontPreferenceKey,
         @"Courier",                     WebKitFixedFontPreferenceKey,