Bug 1618040 - Advertise AXScrollToVisible on link. r=morgan

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Eitan Isaacson 2020-03-02 22:18:11 +00:00
Родитель 8ec8f6b45c
Коммит ee44ad7d4c
1 изменённых файлов: 4 добавлений и 8 удалений

Просмотреть файл

@ -68,16 +68,12 @@
}
- (NSArray*)accessibilityActionNames {
// if we're expired, we don't support any attributes.
// if we're expired, we don't support any actions.
if (![self getGeckoAccessible] && ![self getProxyAccessible]) return [NSArray array];
static NSArray* actionNames = nil;
if (!actionNames) {
actionNames = [[NSArray alloc] initWithObjects:NSAccessibilityPressAction, nil];
}
return actionNames;
// Always advertise press action first.
return [@[ NSAccessibilityPressAction ]
arrayByAddingObjectsFromArray:[super accessibilityActionNames]];
}
- (void)accessibilityPerformAction:(NSString*)action {