зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
8ec8f6b45c
Коммит
ee44ad7d4c
|
@ -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 {
|
||||
|
|
Загрузка…
Ссылка в новой задаче