Changeset 200054 in webkit


Ignore:
Timestamp:
Apr 25, 2016 3:40:45 PM (8 years ago)
Author:
n_wang@apple.com
Message:

AX: Crash at -[WebAccessibilityObjectWrapper accessibilityAttributeValue:] + 4391
https://bugs.webkit.org/show_bug.cgi?id=156987

Reviewed by Chris Fleizach.

Source/WebCore:

When we hit test on a slider indicator asking for the value when the parent slider's
accessibility object is not created or the parent slider has been removed, it will cause
crash. Fixed it by adding a check to see if the object is detached from the parent.

Test: accessibility/mac/slider-thumb-value-crash.html

  • accessibility/mac/WebAccessibilityObjectWrapperMac.mm:

(-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]):

LayoutTests:

  • accessibility/mac/slider-thumb-value-crash-expected.txt: Added.
  • accessibility/mac/slider-thumb-value-crash.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r200051 r200054  
     12016-04-25  Nan Wang  <n_wang@apple.com>
     2
     3        AX: Crash at -[WebAccessibilityObjectWrapper accessibilityAttributeValue:] + 4391
     4        https://bugs.webkit.org/show_bug.cgi?id=156987
     5
     6        Reviewed by Chris Fleizach.
     7
     8        * accessibility/mac/slider-thumb-value-crash-expected.txt: Added.
     9        * accessibility/mac/slider-thumb-value-crash.html: Added.
     10
    1112016-04-25  Brady Eidson  <beidson@apple.com>
    212
  • trunk/Source/WebCore/ChangeLog

    r200052 r200054  
     12016-04-25  Nan Wang  <n_wang@apple.com>
     2
     3        AX: Crash at -[WebAccessibilityObjectWrapper accessibilityAttributeValue:] + 4391
     4        https://bugs.webkit.org/show_bug.cgi?id=156987
     5
     6        Reviewed by Chris Fleizach.
     7
     8        When we hit test on a slider indicator asking for the value when the parent slider's
     9        accessibility object is not created or the parent slider has been removed, it will cause
     10        crash. Fixed it by adding a check to see if the object is detached from the parent.
     11
     12        Test: accessibility/mac/slider-thumb-value-crash.html
     13
     14        * accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
     15        (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]):
     16
    1172016-04-25  Jer Noble  <jer.noble@apple.com>
    218
  • trunk/Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperMac.mm

    r199260 r200054  
    25622562        return nil;
    25632563   
     2564    if (m_object->isDetachedFromParent())
     2565        return nil;
     2566   
    25642567    if ([attributeName isEqualToString: NSAccessibilityRoleAttribute])
    25652568        return [self role];
Note: See TracChangeset for help on using the changeset viewer.