Title: [92292] trunk/Source/WebKit2
- Revision
- 92292
- Author
- ander...@apple.com
- Date
- 2011-08-03 10:41:51 -0700 (Wed, 03 Aug 2011)
Log Message
Fix API tests.
Initialize threading before trying to allocate the WebContext.
* UIProcess/WebContext.cpp:
(WebKit::WebContext::sharedProcessContext):
(WebKit::WebContext::create):
Modified Paths
Diff
Modified: trunk/Source/WebKit2/ChangeLog (92291 => 92292)
--- trunk/Source/WebKit2/ChangeLog 2011-08-03 17:22:50 UTC (rev 92291)
+++ trunk/Source/WebKit2/ChangeLog 2011-08-03 17:41:51 UTC (rev 92292)
@@ -1,3 +1,13 @@
+2011-08-03 Anders Carlsson <ander...@apple.com>
+
+ Fix API tests.
+
+ Initialize threading before trying to allocate the WebContext.
+
+ * UIProcess/WebContext.cpp:
+ (WebKit::WebContext::sharedProcessContext):
+ (WebKit::WebContext::create):
+
2011-08-03 Pavel Feldman <pfeld...@google.com>
Web Inspector: [Timeline] Hover on paint events and see rect outline around that area.
Modified: trunk/Source/WebKit2/UIProcess/WebContext.cpp (92291 => 92292)
--- trunk/Source/WebKit2/UIProcess/WebContext.cpp 2011-08-03 17:22:50 UTC (rev 92291)
+++ trunk/Source/WebKit2/UIProcess/WebContext.cpp 2011-08-03 17:41:51 UTC (rev 92292)
@@ -55,6 +55,7 @@
#include <WebCore/LinkHash.h>
#include <WebCore/Logging.h>
#include <WebCore/ResourceRequest.h>
+#include <runtime/InitializeThreading.h>
#include <wtf/CurrentTime.h>
#include <wtf/MainThread.h>
@@ -74,6 +75,7 @@
WebContext* WebContext::sharedProcessContext()
{
+ JSC::initializeThreading();
WTF::initializeMainThread();
RunLoop::initializeMainRunLoop();
static WebContext* context = adoptRef(new WebContext(ProcessModelSharedSecondaryProcess, String())).leakRef();
@@ -89,6 +91,7 @@
PassRefPtr<WebContext> WebContext::create(const String& injectedBundlePath)
{
+ JSC::initializeThreading();
WTF::initializeMainThread();
RunLoop::initializeMainRunLoop();
return adoptRef(new WebContext(ProcessModelSecondaryProcess, injectedBundlePath));
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes