Bug 868130 - Make sure the new cx is stack-top in nsFrameMessageManager. r=gabor

This commit is contained in:
Bobby Holley 2013-05-22 10:05:23 -06:00
parent fffaff5b13
commit b8b8c5bd4d

View File

@ -1111,8 +1111,9 @@ nsFrameScriptExecutor::InitTabChildGlobalInternal(nsISupports* aScope,
runtimeSvc->GetRuntime(&rt);
NS_ENSURE_TRUE(rt, false);
JSContext* cx = JS_NewContext(rt, 8192);
NS_ENSURE_TRUE(cx, false);
JSContext* cx_ = JS_NewContext(rt, 8192);
NS_ENSURE_TRUE(cx_, false);
AutoPushJSContext cx(cx_);
mCx = cx;