Bug 875790 - Revert AutoPushJSContext change in nsJSContext::CompileScript due to crashes. r=bholley

This commit is contained in:
octoploid@yandex.com 2013-05-27 06:40:37 -07:00
parent 0f6e4cb9d0
commit ee81a84ae6

View File

@ -1319,7 +1319,8 @@ nsJSContext::CompileScript(const PRUnichar* aText,
NS_ENSURE_ARG_POINTER(aPrincipal); NS_ENSURE_ARG_POINTER(aPrincipal);
AutoPushJSContext cx(mContext); JSContext* cx = mContext;
JSAutoRequest ar(cx);
JS::Rooted<JSObject*> scopeObject(mContext, GetNativeGlobal()); JS::Rooted<JSObject*> scopeObject(mContext, GetNativeGlobal());
xpc_UnmarkGrayObject(scopeObject); xpc_UnmarkGrayObject(scopeObject);