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) {
|
if ([relations count] > 0) {
|
||||||
// only fire AXValidationErrorChanged if related node is not
|
// only fire AXValidationErrorChanged if related node is not
|
||||||
// `aria-invalid="false"`
|
// `aria-invalid="false"`
|
||||||
for (uint32_t relIdx = 0; relIdx <= [relations count]; relIdx++) {
|
for (mozAccessible* related : relations) {
|
||||||
NSString* invalidStr = [relations[relIdx] moxInvalid];
|
NSString* invalidStr = [related moxInvalid];
|
||||||
if (![invalidStr isEqualToString:@"false"]) {
|
if (![invalidStr isEqualToString:@"false"]) {
|
||||||
[self moxPostNotification:@"AXValidationErrorChanged"];
|
[self moxPostNotification:@"AXValidationErrorChanged"];
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user