Changeset 187935 in webkit


Ignore:
Timestamp:
Aug 4, 2015 8:38:58 PM (9 years ago)
Author:
commit-queue@webkit.org
Message:

AX: tree item children returned from ranged getter are different from full array of children
https://bugs.webkit.org/show_bug.cgi?id=147660

Source/WebCore:

Patch by Doug Russell <d_russell@apple.com> on 2015-08-04
Reviewed by Chris Fleizach.

Add an isTreeItem() check in ranged element getter so that it matches the logic in
the getter for the full children array. This prevents returning a row as a child
when only the rows contents should be returned. This prevents navigation issues on
websites without aria outlines.

Test: accessibility/mac/aria-tree-item-children.html

  • accessibility/mac/WebAccessibilityObjectWrapperMac.mm:

(-[WebAccessibilityObjectWrapper accessibilityArrayAttributeValues:index:maxCount:]):

LayoutTests:

Add an isTreeItem() check in ranged element getter so that it matches the logic in
the getter for the full children array. This prevents returning a row as a child
when only the rows contents should be returned. This prevents navigation issues on
websites without aria outlines.

Patch by Doug Russell <d_russell@apple.com> on 2015-08-04
Reviewed by Chris Fleizach.

  • accessibility/mac/aria-tree-item-children-expected.txt: Added.
  • accessibility/mac/aria-tree-item-children.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r187934 r187935  
     12015-08-04  Doug Russell  <d_russell@apple.com>
     2
     3        AX: tree item children returned from ranged getter are different from full array of children
     4        https://bugs.webkit.org/show_bug.cgi?id=147660
     5
     6        Add an isTreeItem() check in ranged element getter so that it matches the logic in
     7        the getter for the full children array. This prevents returning a row as a child
     8        when only the rows contents should be returned. This prevents navigation issues on
     9        websites without aria outlines.
     10
     11        Reviewed by Chris Fleizach.
     12
     13        * accessibility/mac/aria-tree-item-children-expected.txt: Added.
     14        * accessibility/mac/aria-tree-item-children.html: Added.
     15
    1162015-08-04  Hunseop Jeong  <hs85.jeong@samsung.com>
    217
  • trunk/Source/WebCore/ChangeLog

    r187931 r187935  
     12015-08-04  Doug Russell  <d_russell@apple.com>
     2
     3        AX: tree item children returned from ranged getter are different from full array of children
     4        https://bugs.webkit.org/show_bug.cgi?id=147660
     5
     6        Reviewed by Chris Fleizach.
     7
     8        Add an isTreeItem() check in ranged element getter so that it matches the logic in
     9        the getter for the full children array. This prevents returning a row as a child
     10        when only the rows contents should be returned. This prevents navigation issues on
     11        websites without aria outlines.
     12
     13        Test: accessibility/mac/aria-tree-item-children.html
     14
     15        * accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
     16        (-[WebAccessibilityObjectWrapper accessibilityArrayAttributeValues:index:maxCount:]):
     17
    1182015-08-04  Anders Carlsson  <andersca@apple.com>
    219
  • trunk/Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperMac.mm

    r186692 r187935  
    40494049            NSUInteger arrayLength = std::min(childCount - index, maxCount);
    40504050            return [children subarrayWithRange:NSMakeRange(index, arrayLength)];
    4051         } else if (m_object->isTree()) {
    4052             // Tree objects return their rows as their children. We can use the original method in this case.
     4051        } else if (m_object->isTree() || m_object->isTreeItem()) {
     4052            // Tree objects return their rows as their children & tree items return their contents sans rows.
     4053            // We can use the original method in this case.
    40534054            return [super accessibilityArrayAttributeValues:attribute index:index maxCount:maxCount];
    40544055        }
Note: See TracChangeset for help on using the changeset viewer.