Skip to content

Commit

Permalink
Bug 1843540: Ensure that EventQueue::PushNameOrDescriptionChange neve…
Browse files Browse the repository at this point in the history
…r queues events for an Accessible outside its document. r=morgan

Differential Revision: https://phabricator.services.mozilla.com/D184070
  • Loading branch information
jcsteh committed Jul 21, 2023
1 parent ad5918d commit fb616a6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions accessible/base/EventQueue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ bool EventQueue::PushNameOrDescriptionChange(AccEvent* aOrigEvent) {
}
}

if (parent->IsDoc()) {
// Never cross document boundaries.
break;
}
parent = parent->LocalParent();
} while (parent &&
nsTextEquivUtils::HasNameRule(parent, eNameFromSubtreeIfReqRule));
Expand Down
2 changes: 1 addition & 1 deletion accessible/tests/crashtests/crashtests.list
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ load 1472024-2.html
load 1484778.html
load 1494707.html
load 1503964.html
asserts(0-1) load 1415667.html # Bug 1843540.
load 1415667.html
load 1585851.html
load 1655983.html
load 1838250.html
Expand Down

0 comments on commit fb616a6

Please sign in to comment.