Bug 1207253 - make getChildCountCB correctly deal with outerdoc accessibles with proxy children, r=tbsaunde

This commit is contained in:
Olli Pettay 2015-09-23 01:43:51 +03:00
parent 164f079e48
commit 966a34c2af

View File

@ -827,7 +827,15 @@ getChildCountCB(AtkObject *aAtkObj)
return 0;
}
return static_cast<gint>(accWrap->EmbeddedChildCount());
uint32_t count = accWrap->EmbeddedChildCount();
if (count) {
return static_cast<gint>(count);
}
OuterDocAccessible* outerDoc = accWrap->AsOuterDoc();
if (outerDoc && outerDoc->RemoteChildDoc()) {
return 1;
}
}
ProxyAccessible* proxy = GetProxy(aAtkObj);