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