changeset 4981:c8461294f0e2

RT-32680: DRT test harness is broken
author Vasiliy Baranov <vasiliy.baranov@oracle.com>
date Thu, 05 Sep 2013 13:12:36 +0400
parents acf4b07fa2f6
children 06fd648260a0
files modules/web/src/main/native/Source/WebCore/platform/java/WebPage.cpp
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/modules/web/src/main/native/Source/WebCore/platform/java/WebPage.cpp	Thu Sep 05 09:03:01 2013 +0100
+++ b/modules/web/src/main/native/Source/WebCore/platform/java/WebPage.cpp	Thu Sep 05 13:12:36 2013 +0400
@@ -818,8 +818,7 @@
 
     frame->init();
 
-    JSGlobalContextRef globalContext = getGlobalContext(frame->script());
-    JSContextGroupRef contextGroup = JSContextGetGroup(globalContext);
+    JSContextGroupRef contextGroup = toRef(mainThreadNormalWorld()->vm());
     JSContextGroupSetExecutionTimeLimit(contextGroup, 10, 0, 0);
 }