Bug 834732 - Push a cx in nsWindowSH::NewResolve. r=mrbkap

This commit is contained in:
Bobby Holley 2013-02-26 11:04:11 -08:00
parent 169d010a55
commit 3e3df975b8

View File

@ -5440,6 +5440,7 @@ nsWindowSH::NewResolve(nsIXPConnectWrappedNative *wrapper, JSContext *cx,
JS::Value exn = JSVAL_VOID;
{
nsCxPusher pusher;
Maybe<JSAutoCompartment> ac;
JSContext* my_cx;
@ -5449,6 +5450,7 @@ nsWindowSH::NewResolve(nsIXPConnectWrappedNative *wrapper, JSContext *cx,
my_cx = my_context->GetNativeContext();
if (my_cx != cx) {
pusher.Push(my_cx);
ac.construct(my_cx, obj);
}
}