Bug 879341 - Use an AutoPushJSContext in JSD. r=gabor

We can do this now, since it won't cause infinite recursion.
This commit is contained in:
Bobby Holley 2013-06-04 15:37:59 -07:00
parent 3e0ac7f12e
commit 4c7eef9edd

View File

@ -2508,7 +2508,7 @@ jsdService::ActivateDebugger (JSRuntime *rt)
if (!mCx)
return NS_ERROR_FAILURE;
JSContext *cx = JSD_GetDefaultJSContext (mCx);
mozilla::AutoPushJSContext cx(JSD_GetDefaultJSContext (mCx));
JS::RootedObject glob(cx, JSD_GetDefaultGlobal (mCx));
/* init xpconnect on the debugger's context in case xpconnect tries to