Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 8d8fa5f787b179868980abf2f52bf858c2d294e7
      
https://github.com/WebKit/WebKit/commit/8d8fa5f787b179868980abf2f52bf858c2d294e7
  Author: Andres Gonzalez <[email protected]>
  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


_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to