Bug 1614079 - Pass accessibilityHitTest to content process. r=morgan

Differential Revision: https://phabricator.services.mozilla.com/D62311

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Eitan Isaacson 2020-02-10 23:36:36 +00:00
parent 113fa0f94e
commit ff0625bca4

View File

@ -443,7 +443,15 @@ static inline NSMutableArray* ConvertToNSArray(nsTArray<ProxyAccessible*>& aArra
if (accWrap) {
Accessible* child =
accWrap->ChildAtPoint(geckoPoint.x, geckoPoint.y, Accessible::eDeepestChild);
if (child) nativeChild = GetNativeFromGeckoAccessible(child);
// If this is an outer doc, drill down further into proxies to find deepest remote child.
if (OuterDocAccessible* docOwner = child->AsOuterDoc()) {
if (ProxyAccessible* proxyDoc = docOwner->RemoteChildDoc()) {
mozAccessible* nativeRemoteChild = GetNativeFromProxy(proxyDoc);
return [nativeRemoteChild accessibilityHitTest:point];
}
} else if (child) {
nativeChild = GetNativeFromGeckoAccessible(child);
}
} else if (proxy) {
ProxyAccessible* child =
proxy->ChildAtPoint(geckoPoint.x, geckoPoint.y, Accessible::eDeepestChild);