mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-25 19:25:43 +00:00
Bug 868130 - Make sure the new cx is stack-top in nsFrameMessageManager. r=gabor
This commit is contained in:
parent
e7d2092dbd
commit
762638238d
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user