File tree 1 file changed +9
-1
lines changed
chromium_src/ui/accessibility/platform
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 8
8
9
9
// Assumed to be a temporary fix for
10
10
// https://github.com/brave/brave-browser/issues/13778
11
+ // and
12
+ // https://github.com/brave/brave-browser/issues/13837
11
13
#define BRAVE_ACCESSIBILITY_ATTRIBUTED_STRING_FOR_RANGE \
12
- id value = [self getAXValueAsString ]; \
14
+ id value = [self AXValue ]; \
13
15
if (![value isKindOfClass: [NSString class ]]) { \
14
16
ax::mojom::Role role = _node->GetData ().role ; \
15
17
base::debug::Alias (&role); \
19
21
<< " Name: " << _node->GetName (); \
20
22
base::debug::DumpWithoutCrashing (); \
21
23
return nil ; \
24
+ } \
25
+ NSString * str = value; \
26
+ if (range.location == NSNotFound || \
27
+ range.location + range.length > str.length) { \
28
+ base::debug::DumpWithoutCrashing (); \
29
+ return nil ; \
22
30
}
23
31
24
32
#include " ../../../../ui/accessibility/platform/ax_platform_node_mac.mm"
You can’t perform that action at this time.
0 commit comments