зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1617312: Ensure labelling attributes return nil for text leaves. r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D66323 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
fb6c63da8c
Коммит
bca4131fda
|
@ -565,6 +565,9 @@ inline NSString* ToNSString(id aValue) {
|
|||
if (!supportedAttributes) {
|
||||
supportedAttributes = [[super accessibilityAttributeNames] mutableCopy];
|
||||
[supportedAttributes removeObject:NSAccessibilityChildrenAttribute];
|
||||
// We remove our AXTitleUIElement here to avoid an IPC call in the
|
||||
// parent class when locating values for our attributes.
|
||||
[supportedAttributes removeObject:NSAccessibilityTitleUIElementAttribute];
|
||||
}
|
||||
|
||||
return supportedAttributes;
|
||||
|
@ -606,4 +609,8 @@ inline NSString* ToNSString(id aValue) {
|
|||
return 0;
|
||||
}
|
||||
|
||||
- (NSString*)accessibilityLabel {
|
||||
return nil;
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
Загрузка…
Ссылка в новой задаче