Skip to content

Commit

Permalink
Cherry-pick 46a7bd3. rdar://124421166
Browse files Browse the repository at this point in the history
    AX: com.apple.WebKit.WebContent crash at WebCore: -[WebAccessibilityObjectWrapper handleNotificationRelayToChrome:notificationData:]
    https://bugs.webkit.org/show_bug.cgi?id=269319
    <rdar://problem/122688370>

    Reviewed by (OOPS).

    Ensure that we have a valid AXObjectCache before proceeding.

    * Source/WebCore/accessibility/ios/WebAccessibilityObjectWrapperIOS.mm

    Canonical link: https://commits.webkit.org/274610@main
  • Loading branch information
fleizach authored and Mohsin Qureshi committed Mar 13, 2024
1 parent f7ff600 commit b15d7b9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1711,7 +1711,8 @@ - (void)handleNotificationRelayToChrome:(NSString *)notificationName notificatio
if (![self _prepareAccessibilityCall])
return;

self.axBackingObject->axObjectCache()->relayNotification({ notificationName }, notificationData);
if (auto* cache = self.axBackingObject->axObjectCache())
cache->relayNotification({ notificationName }, notificationData);
}

- (CGRect)_accessibilityRelativeFrame
Expand Down

0 comments on commit b15d7b9

Please sign in to comment.