Skip to content
Snippets Groups Projects
Unverified Commit c83dc5be authored by trop[bot]'s avatar trop[bot] Committed by GitHub
Browse files

fix: Add ContentsView to AXChildren (#22470)


Co-authored-by: default avatarFelix Rieseberg <felix@felixrieseberg.com>
parent 63cb360d
No related merge requests found
......@@ -120,7 +120,18 @@ bool ScopedDisableResize::disable_resize_ = false;
[NSButtonCell class], @"RenderWidgetHostViewCocoa"];
NSArray* children = [super accessibilityAttributeValue:attribute];
return [children filteredArrayUsingPredicate:predicate];
NSMutableArray* mutableChildren = [[children mutableCopy] autorelease];
[mutableChildren filterUsingPredicate:predicate];
// We need to add the web contents: Without us doing so, VoiceOver
// users will be able to navigate up the a11y tree, but not back down.
// The content view contains the "web contents", which VoiceOver
// immediately understands.
NSView* contentView =
[shell_->GetNativeWindow().GetNativeNSWindow() contentView];
[mutableChildren addObject:contentView];
return mutableChildren;
}
- (NSString*)accessibilityTitle {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment