Skip to content

Commit

Permalink
Cherry-pick 58895ed. rdar://122778867
Browse files Browse the repository at this point in the history
    AX: Missing _prepareAccessibilityCall in accessibilityIsInNonNativeTextControl
    https://bugs.webkit.org/show_bug.cgi?id=269214
    rdar://122778867

    Reviewed by Andres Gonzalez.

    We need to add a _prepareAccessibilityCall to avoid a nullptr dereference.

    * Source/WebCore/accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:
    (-[WebAccessibilityObjectWrapper accessibilityIsInNonNativeTextControl]):

    Canonical link: https://commits.webkit.org/274497@main

Identifier: 272448.542@safari-7618.1.15.14-branch
  • Loading branch information
hoffmanjoshua authored and Dan Robson committed Feb 13, 2024
1 parent e4d0dee commit f6b6e7a
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2762,6 +2762,9 @@ - (BOOL)accessibilityIsDeletion

- (BOOL)accessibilityIsInNonNativeTextControl
{
if (![self _prepareAccessibilityCall])
return NO;

return !!Accessibility::findAncestor(*self.axBackingObject, true, [] (const auto& object) {
return object.isNonNativeTextControl();
});
Expand Down

0 comments on commit f6b6e7a

Please sign in to comment.