summaryrefslogtreecommitdiffstats
path: root/WebCore/bindings/js/JSDOMWindowBase.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/bindings/js/JSDOMWindowBase.cpp')
-rw-r--r--WebCore/bindings/js/JSDOMWindowBase.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/WebCore/bindings/js/JSDOMWindowBase.cpp b/WebCore/bindings/js/JSDOMWindowBase.cpp
index 4338cdd..82ac1ce 100644
--- a/WebCore/bindings/js/JSDOMWindowBase.cpp
+++ b/WebCore/bindings/js/JSDOMWindowBase.cpp
@@ -23,7 +23,6 @@
#include "config.h"
#include "JSDOMWindowBase.h"
-#include "CString.h"
#include "Chrome.h"
#include "Console.h"
#include "DOMWindow.h"
@@ -36,6 +35,9 @@
#include "ScriptController.h"
#include "SecurityOrigin.h"
#include "Settings.h"
+#include "WebCoreJSClientData.h"
+#include <wtf/Threading.h>
+#include <wtf/text/CString.h>
using namespace JSC;
@@ -155,12 +157,12 @@ JSGlobalData* JSDOMWindowBase::commonJSGlobalData()
static JSGlobalData* globalData = 0;
if (!globalData) {
- globalData = JSGlobalData::createLeaked().releaseRef();
+ globalData = JSGlobalData::createLeaked(ThreadStackTypeLarge).releaseRef();
globalData->timeoutChecker.setTimeoutInterval(10000); // 10 seconds
#ifndef NDEBUG
- globalData->mainThreadOnly = true;
+ globalData->exclusiveThread = currentThread();
#endif
- globalData->clientData = new WebCoreJSClientData(globalData);
+ initNormalWorldClientData(globalData);
}
return globalData;