File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -121,7 +121,18 @@ - (id)accessibilityAttributeValue:(NSString*)attribute {
121
121
[NSButtonCell class ], @" RenderWidgetHostViewCocoa" ];
122
122
123
123
NSArray * children = [super accessibilityAttributeValue: attribute];
124
- return [children filteredArrayUsingPredicate: predicate];
124
+ NSMutableArray * mutableChildren = [[children mutableCopy ] autorelease ];
125
+ [mutableChildren filterUsingPredicate: predicate];
126
+
127
+ // We need to add the web contents: Without us doing so, VoiceOver
128
+ // users will be able to navigate up the a11y tree, but not back down.
129
+ // The content view contains the "web contents", which VoiceOver
130
+ // immediately understands.
131
+ NSView * contentView =
132
+ [shell_->GetNativeWindow ().GetNativeNSWindow () contentView ];
133
+ [mutableChildren addObject: contentView];
134
+
135
+ return mutableChildren;
125
136
}
126
137
127
138
- (NSString *)accessibilityTitle {
You can’t perform that action at this time.
0 commit comments