Bug 180098 - "--enable-activex-scripting" option seems to break composition window. Error was in enumeration when IDispatch logic was turned on. r=adamlock, sr=jst

This commit is contained in:
dbradley%netscape.com 2002-11-15 13:57:16 +00:00
Родитель a7b0a890fd
Коммит 39cadd74bc
1 изменённых файлов: 8 добавлений и 6 удалений

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

@ -594,6 +594,14 @@ XPC_WN_Shared_Enumerate(JSContext *cx, JSObject *obj)
for(PRUint16 i = 0; i < interface_count; i++)
{
XPCNativeInterface* interface = interfaceArray[i];
#ifdef XPC_IDISPATCH_SUPPORT
if (nsXPConnect::GetXPConnect()->IsIDispatchEnabled() &&
interface->GetIID()->Equals(NSID_IDISPATCH))
{
XPCIDispatchExtension::Enumerate(ccx, obj, wrapper);
continue;
}
#endif
PRUint16 member_count = interface->GetMemberCount();
for(PRUint16 k = 0; k < member_count; k++)
{
@ -609,12 +617,6 @@ XPC_WN_Shared_Enumerate(JSContext *cx, JSObject *obj)
return JS_FALSE;
}
}
#ifdef XPC_IDISPATCH_SUPPORT
if(nsXPConnect::GetXPConnect()->IsIDispatchEnabled())
{
return XPCIDispatchExtension::Enumerate(ccx, obj, wrapper);
}
#endif
return JS_TRUE;
}