mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 20:35:50 +00:00
Bug 834732 - Push a cx in nsWindowSH::NewResolve. r=mrbkap
This commit is contained in:
parent
bb7512a1cd
commit
c503246203
@ -6128,6 +6128,7 @@ nsWindowSH::NewResolve(nsIXPConnectWrappedNative *wrapper, JSContext *cx,
|
||||
JS::Value exn = JSVAL_VOID;
|
||||
|
||||
{
|
||||
nsCxPusher pusher;
|
||||
Maybe<JSAutoCompartment> ac;
|
||||
|
||||
JSContext* my_cx;
|
||||
@ -6137,6 +6138,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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user