Bug 450692 - Don't unconditionally add inner and outer object hooks to XPConnect objects.

This commit is contained in:
Blake Kaplan 2008-09-15 17:14:08 -07:00
Родитель ec0655f777
Коммит bc4f01745d
1 изменённых файлов: 6 добавлений и 2 удалений

Просмотреть файл

@ -1446,9 +1446,13 @@ XPCNativeScriptableShared::PopulateJSClass(JSBool isGlobal)
else
mJSClass.base.mark = JS_CLASS_TRACE(XPC_WN_Shared_Trace);
// Equality is a required hook.
mJSClass.equality = XPC_WN_Equality;
mJSClass.outerObject = XPC_WN_OuterObject;
mJSClass.innerObject = XPC_WN_InnerObject;
if(mFlags.WantOuterObject())
mJSClass.outerObject = XPC_WN_OuterObject;
if(mFlags.WantInnerObject())
mJSClass.innerObject = XPC_WN_InnerObject;
}
/***************************************************************************/