[webkit-changes] [WebKit/WebKit] 8d8fa5: AX: Fix for crash in AXIsolatedObject::textMarkerR...

AndresGonzalezApple noreply at github.com
Thu Apr 6 06:31:19 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 8d8fa5f787b179868980abf2f52bf858c2d294e7
      https://github.com/WebKit/WebKit/commit/8d8fa5f787b179868980abf2f52bf858c2d294e7
  Author: Andres Gonzalez <andresg_22 at apple.com>
  Date:   2023-04-06 (Thu, 06 Apr 2023)

  Changed paths:
    M Source/WebCore/accessibility/isolatedtree/AXIsolatedObject.h
    M Source/WebCore/accessibility/isolatedtree/mac/AXIsolatedObjectMac.mm

  Log Message:
  -----------
  AX: Fix for crash in AXIsolatedObject::textMarkerRange()
https://bugs.webkit.org/show_bug.cgi?id=255051
<rdar://problem/107677029>

Reviewed by Tyler Wilcock.

Modified the AXIsolatedObject::propertyValue to return the null value if the property is not in the properties map. This avoids the assert crash in the switchOn for some types when the property is not present in the map.

* Source/WebCore/accessibility/isolatedtree/AXIsolatedObject.h:
(WebCore::AXIsolatedObject::propertyValue const):
* Source/WebCore/accessibility/isolatedtree/mac/AXIsolatedObjectMac.mm:
(WebCore::AXIsolatedObject::textMarkerRange const):

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




More information about the webkit-changes mailing list