Bug 1968547 - Modify loop to for-each to avoid indexing error. r=morgan, a=dmeehan
Differential Revision: https://phabricator.services.mozilla.com/D253233
This commit is contained in:
committed by
dmeehan@mozilla.com
parent
889171cae3
commit
23319d2ebb
@@ -1058,8 +1058,8 @@ struct RoleDescrComparator {
|
||||
if ([relations count] > 0) {
|
||||
// only fire AXValidationErrorChanged if related node is not
|
||||
// `aria-invalid="false"`
|
||||
for (uint32_t relIdx = 0; relIdx <= [relations count]; relIdx++) {
|
||||
NSString* invalidStr = [relations[relIdx] moxInvalid];
|
||||
for (mozAccessible* related : relations) {
|
||||
NSString* invalidStr = [related moxInvalid];
|
||||
if (![invalidStr isEqualToString:@"false"]) {
|
||||
[self moxPostNotification:@"AXValidationErrorChanged"];
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user