From ee81a84ae693e18c020d1f3cb0d51a23fd0880e9 Mon Sep 17 00:00:00 2001 From: "octoploid@yandex.com" Date: Mon, 27 May 2013 06:40:37 -0700 Subject: [PATCH] Bug 875790 - Revert AutoPushJSContext change in nsJSContext::CompileScript due to crashes. r=bholley --- dom/base/nsJSEnvironment.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dom/base/nsJSEnvironment.cpp b/dom/base/nsJSEnvironment.cpp index 66597996435..b8ad40d39a6 100644 --- a/dom/base/nsJSEnvironment.cpp +++ b/dom/base/nsJSEnvironment.cpp @@ -1319,7 +1319,8 @@ nsJSContext::CompileScript(const PRUnichar* aText, NS_ENSURE_ARG_POINTER(aPrincipal); - AutoPushJSContext cx(mContext); + JSContext* cx = mContext; + JSAutoRequest ar(cx); JS::Rooted scopeObject(mContext, GetNativeGlobal()); xpc_UnmarkGrayObject(scopeObject);