diff --git a/dom/base/nsDOMClassInfo.cpp b/dom/base/nsDOMClassInfo.cpp index 528488ee2293..0ecbf73e613d 100644 --- a/dom/base/nsDOMClassInfo.cpp +++ b/dom/base/nsDOMClassInfo.cpp @@ -6128,6 +6128,7 @@ nsWindowSH::NewResolve(nsIXPConnectWrappedNative *wrapper, JSContext *cx, JS::Value exn = JSVAL_VOID; { + nsCxPusher pusher; Maybe 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); } }