зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
a7b0a890fd
Коммит
39cadd74bc
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче