Bug 236414

Summary: AXIsolatedTree::updateChildren and AXIsolatedTree::nodeAncestryChanges results in adding incorrect nodes to the isolated tree
Product: WebKit Reporter: Tyler Wilcock <tyler_w>
Component: AccessibilityAssignee: Tyler Wilcock <tyler_w>
Status: RESOLVED FIXED    
Severity: Normal CC: aboxhall, andresg_22, apinheiro, cfleizach, dmazzoni, ews-watchlist, jcraig, jdiggs, samuel_white, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch
none
Patch
none
Patch
none
Patch
ews-feeder: commit-queue-
Patch none

Tyler Wilcock
Reported 2022-02-09 16:26:30 PST
Sometimes AXIsolatedTree::updateChildren is called with an object that is not in the isolated tree. When this happens, we currently call AXIsolatedTree::nodeAncestryChanges to build the ancestry chain up to the nearest in-isolated-tree node (starting with the original object called for updateChildren). However, this seems to result in adding nodes to the isolated tree that don't exist in the live tree. I believe this also causes isolated objects to often hold references to parent objects that don't exist in the isolated tree, breaking searches (and more).
Attachments
Patch (9.42 KB, patch)
2022-02-09 16:52 PST, Tyler Wilcock
no flags
Patch (9.42 KB, patch)
2022-02-09 16:54 PST, Tyler Wilcock
no flags
Patch (10.77 KB, patch)
2022-02-09 17:54 PST, Tyler Wilcock
no flags
Patch (10.99 KB, patch)
2022-02-09 17:58 PST, Tyler Wilcock
ews-feeder: commit-queue-
Patch (10.99 KB, patch)
2022-02-09 18:30 PST, Tyler Wilcock
no flags
Radar WebKit Bug Importer
Comment 1 2022-02-09 16:26:41 PST
Tyler Wilcock
Comment 2 2022-02-09 16:52:26 PST
Tyler Wilcock
Comment 3 2022-02-09 16:54:10 PST
Tyler Wilcock
Comment 4 2022-02-09 17:54:43 PST
Tyler Wilcock
Comment 5 2022-02-09 17:58:38 PST
Tyler Wilcock
Comment 6 2022-02-09 18:30:48 PST
EWS
Comment 7 2022-02-10 08:37:54 PST
Committed r289537 (247068@main): <https://commits.webkit.org/247068@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 451477 [details].
Note You need to log in before you can comment on or make changes to this bug.