mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
Bug 121938 - XPCWrappedJS::GetNewORUsed does not look for inherited interfaces when matching interfaces. r=jband, sr=jst
This commit is contained in:
parent
c797bc5a3d
commit
db81563416
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user