Bug 121938 - XPCWrappedJS::GetNewORUsed does not look for inherited interfaces when matching interfaces. r=jband, sr=jst

This commit is contained in:
dbradley%netscape.com 2002-02-19 11:24:21 +00:00
parent c797bc5a3d
commit db81563416

View File

@ -226,8 +226,8 @@ nsXPCWrappedJS::GetNewOrUsed(XPCCallContext& ccx,
}
if(root)
{
wrapper = root->Find(aIID);
if(wrapper)
if((nsnull != (wrapper = root->Find(aIID))) ||
(nsnull != (wrapper = root->FindInherited(aIID))))
{
NS_ADDREF(wrapper);
goto return_wrapper;