From 2b361da3c89037b151e52be6bed75be013bcd6fd Mon Sep 17 00:00:00 2001 From: "igor%mir2.org" Date: Tue, 18 Mar 2008 22:05:35 +0000 Subject: [PATCH] bug=420869 r=brendan a1.9=blocking1.9 bumping script stack quota to 100MB for better compatibility with FF2. git-svn-id: svn://10.0.0.236/trunk@248142 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/js/src/xpconnect/src/xpcjsruntime.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mozilla/js/src/xpconnect/src/xpcjsruntime.cpp b/mozilla/js/src/xpconnect/src/xpcjsruntime.cpp index c083b5169f7..b413bf96a76 100644 --- a/mozilla/js/src/xpconnect/src/xpcjsruntime.cpp +++ b/mozilla/js/src/xpconnect/src/xpcjsruntime.cpp @@ -238,11 +238,13 @@ ContextCallback(JSContext *cx, uintN operation) { if (operation == JSCONTEXT_NEW) { + // Set the limits on the native and script stack space. XPCPerThreadData* tls = XPCPerThreadData::GetData(cx); if(tls) { JS_SetThreadStackLimit(cx, tls->GetStackLimit()); } + JS_SetScriptStackQuota(cx, 100*1024*1024); } }