зеркало из https://github.com/mozilla/pjs.git
Bug 450692 - Don't unconditionally add inner and outer object hooks to XPConnect objects.
This commit is contained in:
Родитель
ec0655f777
Коммит
bc4f01745d
|
@ -1446,8 +1446,12 @@ 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;
|
||||
|
||||
if(mFlags.WantOuterObject())
|
||||
mJSClass.outerObject = XPC_WN_OuterObject;
|
||||
if(mFlags.WantInnerObject())
|
||||
mJSClass.innerObject = XPC_WN_InnerObject;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче