| Summary: | AX: Don't detach children in AXIsolatedTree::applyPendingChanges for nodes being updated (removed and added) | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Tyler Wilcock <tyler_w> | ||||||||
| Component: | Accessibility | Assignee: | 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: | Unspecified | ||||||||||
| OS: | Unspecified | ||||||||||
| Attachments: |
|
||||||||||
|
Description
Tyler Wilcock
2022-03-28 10:52:08 PDT
Created attachment 455930 [details]
Patch
Created attachment 455979 [details]
Patch
(In reply to Tyler Wilcock from comment #3) > Created attachment 455979 [details] > Patch --- a/Source/WebCore/accessibility/isolatedtree/AXIsolatedTree.cpp +++ a/Source/WebCore/accessibility/isolatedtree/AXIsolatedTree.cpp @@ -307,7 +307,7 @@ void AXIsolatedTree::updateNode(AXCoreObject& axObject) - m_pendingNodeRemovals.append(axID); + m_pendingNodeRemovals.append(std::make_pair(axID, AccessibilityDetachmentType::ElementChanged)); Can we use an initializer list for the pair? m_pendingNodeRemovals.append({ axID, AccessibilityDetachmentType::ElementChanged }); @@ -545,10 +545,11 @@ void AXIsolatedTree::applyPendingChanges() + auto axID = removal.first; Don't need this local variable. Created attachment 456028 [details]
Patch
Committed r292086 (249013@main): <https://commits.webkit.org/249013@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 456028 [details]. |