Bug 658909 - Initialize the same fields in both XPCCallContext constructors. r=mrbkap

This is a huge footgun. XPCCallContext is hot, but it's not too hot to be safe
here. Garbage XPCWN and JSObject pointers are bad.
This commit is contained in:
Bobby Holley 2013-03-21 08:20:42 -07:00
parent b25c1dc9f9
commit 4df5fa5f43

View File

@ -26,7 +26,10 @@ XPCCallContext::XPCCallContext(XPCContext::LangType callerLanguage,
mJSContext(cx),
mContextPopRequired(false),
mDestroyJSContextInDestructor(false),
mCallerLanguage(callerLanguage)
mCallerLanguage(callerLanguage),
mFlattenedJSObject(nullptr),
mWrapper(nullptr),
mTearOff(nullptr)
{
Init(callerLanguage, callerLanguage == NATIVE_CALLER, obj, funobj,
INIT_SHOULD_LOOKUP_WRAPPER, name, argc, argv, rval);