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
This commit is contained in:
igor%mir2.org 2008-03-18 22:05:35 +00:00
parent 68f6c533cb
commit 2b361da3c8

View File

@ -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);
}
}