Changeset 261693 in webkit


Ignore:
Timestamp:
May 14, 2020 8:31:58 AM (4 years ago)
Author:
Andres Gonzalez
Message:

Fix for crash in LayoutTest in isolated tree mode.
https://bugs.webkit.org/show_bug.cgi?id=211894

Reviewed by Chris Fleizach.

Several LayoutTests.

  • accessibility/mac/WebAccessibilityObjectWrapperMac.mm:

(-[WebAccessibilityObjectWrapper accessibilityArrayAttributeValues:index:maxCount:]): Check backing object for nullity before dereferencing.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r261692 r261693  
     12020-05-14  Andres Gonzalez  <andresg_22@apple.com>
     2
     3        Fix for crash in LayoutTest in isolated tree mode.
     4        https://bugs.webkit.org/show_bug.cgi?id=211894
     5
     6        Reviewed by Chris Fleizach.
     7
     8        Several LayoutTests.
     9
     10        * accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
     11        (-[WebAccessibilityObjectWrapper accessibilityArrayAttributeValues:index:maxCount:]): Check backing object for nullity before dereferencing.
     12
    1132020-05-14  Andres Gonzalez  <andresg_22@apple.com>
    214
  • trunk/Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperMac.mm

    r261687 r261693  
    45134513            WebAccessibilityObjectWrapper* wrapper = children[index];
    45144514            // The attachment view should be returned, otherwise AX palindrome errors occur.
    4515             BOOL isAttachment = [wrapper isKindOfClass:[WebAccessibilityObjectWrapper class]] && wrapper.axBackingObject->isAttachment() && [wrapper attachmentView];
     4515            BOOL isAttachment = [wrapper isKindOfClass:[WebAccessibilityObjectWrapper class]] && wrapper.axBackingObject && wrapper.axBackingObject->isAttachment() && [wrapper attachmentView];
    45164516            [subarray addObject:isAttachment ? [wrapper attachmentView] : wrapper];
    45174517        }
Note: See TracChangeset for help on using the changeset viewer.