mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1171995 - Part 3: Handle proxies in mozAccessible accessibilityIsIgnored r=tbsaunde
This commit is contained in:
parent
86ba7db772
commit
db9d2df32f
@ -211,9 +211,14 @@ ConvertToNSArray(nsTArray<ProxyAccessible*>& aArray)
|
||||
// unknown (either unimplemented, or irrelevant) elements are marked as ignored
|
||||
// as well as expired elements.
|
||||
|
||||
AccessibleWrap* accWrap = [self getGeckoAccessible];
|
||||
return !accWrap || ([[self role] isEqualToString:NSAccessibilityUnknownRole] &&
|
||||
!(accWrap->InteractiveState() & states::FOCUSABLE));
|
||||
bool noRole = [[self role] isEqualToString:NSAccessibilityUnknownRole];
|
||||
if (AccessibleWrap* accWrap = [self getGeckoAccessible])
|
||||
return (noRole && !(accWrap->InteractiveState() & states::FOCUSABLE));
|
||||
|
||||
if (ProxyAccessible* proxy = [self getProxyAccessible])
|
||||
return (noRole && !(proxy->State() & states::FOCUSABLE));
|
||||
|
||||
return true;
|
||||
|
||||
NS_OBJC_END_TRY_ABORT_BLOCK_RETURN(NO);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user