mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 1210447 - fix ProxyAccessible::EmbeddedChildAt() on proxies of outerDocs r=davidb
This commit is contained in:
parent
9a58833114
commit
6e6e4680c4
@ -1000,6 +1000,14 @@ ProxyAccessible::IndexOfEmbeddedChild(const ProxyAccessible* aChild)
|
||||
ProxyAccessible*
|
||||
ProxyAccessible::EmbeddedChildAt(size_t aChildIdx)
|
||||
{
|
||||
// For an outer doc the only child is a document, which is of course an
|
||||
// embedded child. Further asking the child process for the id of the child
|
||||
// document won't work because the id of the child doc will be 0, which we
|
||||
// would interpret as being our parent document.
|
||||
if (mOuterDoc) {
|
||||
return ChildAt(aChildIdx);
|
||||
}
|
||||
|
||||
uint64_t childID;
|
||||
unused << mDoc->SendEmbeddedChildAt(mID, aChildIdx, &childID);
|
||||
return mDoc->GetAccessible(childID);
|
||||
|
Loading…
Reference in New Issue
Block a user