Skip to content

Commit

Permalink
Cherry-pick f8bf94a9121b. rdar://126567078
Browse files Browse the repository at this point in the history
    Add missing handling of AXPropertyName::AccessibilityText in AXIsolatedTree::updateNodeProperties
    rdar://126567078

    Reviewed by Chris Fleizach.

    Without explicitly handling this property, dynamic updates to it get dropped, causing stale content.

    * Source/WebCore/accessibility/isolatedtree/AXIsolatedTree.cpp:
    (WebCore::AXIsolatedTree::updateNodeProperties):

    Canonical link: https://commits.webkit.org/272448.934@safari-7618-branch

Canonical link: https://commits.webkit.org/272448.938@safari-7618.2.12.11-branch
  • Loading branch information
twilco authored and Dan Robson committed Apr 17, 2024
1 parent cd4a1e1 commit b836cac
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Source/WebCore/accessibility/isolatedtree/AXIsolatedTree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,15 @@ void AXIsolatedTree::updateNodeProperties(AXCoreObject& axObject, const AXProper
case AXPropertyName::AccessKey:
propertyMap.set(AXPropertyName::AccessKey, axObject.accessKey().isolatedCopy());
break;
case AXPropertyName::AccessibilityText: {
Vector<AccessibilityText> texts;
axObject.accessibilityText(texts);
auto axTextValue = texts.map([] (const auto& text) -> AccessibilityText {
return { text.text.isolatedCopy(), text.textSource };
});
propertyMap.set(AXPropertyName::AccessibilityText, axTextValue);
break;
}
case AXPropertyName::ARIATreeRows: {
AXCoreObject::AccessibilityChildrenVector ariaTreeRows;
axObject.ariaTreeRows(ariaTreeRows);
Expand Down

0 comments on commit b836cac

Please sign in to comment.