Changeset 247330 in webkit


Ignore:
Timestamp:
Jul 10, 2019 3:42:21 PM (5 years ago)
Author:
Chris Fleizach
Message:

AX: VoiceOver ignored role="presentation" on <table> HTML elements
https://bugs.webkit.org/show_bug.cgi?id=199659

Reviewed by Zalan Bujtas.

Source/WebCore:

Only include a table ancestor if it's a table we care about for accessibility.

Modified Test: accessibility/ios-simulator/tables-lists.html

  • accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:

(-[WebAccessibilityObjectWrapper _accessibilityTableAncestor]):

LayoutTests:

  • accessibility/ios-simulator/tables-lists-expected.txt:
  • accessibility/ios-simulator/tables-lists.html:
Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r247327 r247330  
     12019-07-10  Chris Fleizach  <cfleizach@apple.com>
     2
     3        AX: VoiceOver ignored role="presentation" on <table> HTML elements
     4        https://bugs.webkit.org/show_bug.cgi?id=199659
     5
     6        Reviewed by Zalan Bujtas.
     7
     8        * accessibility/ios-simulator/tables-lists-expected.txt:
     9        * accessibility/ios-simulator/tables-lists.html:
     10
    1112019-07-10  Ryosuke Niwa  <rniwa@webkit.org>
    212
  • trunk/LayoutTests/accessibility/ios-simulator/tables-lists-expected.txt

    r187904 r247330  
    33table item 1    table item 2    table item 3
    44landmark 1
     5table item 1
    56This test makes sure that items in lists, tables and landmarks have different traits on them, because they're contained in different items.
    67
     
    1415PASS tableItem.traits != landmarkItem.traits is true
    1516PASS landmarkItem.traits != initialItem.traits is true
     17PASS nonTableItem.traits != tableItem.traits is true
    1618PASS successfullyParsed is true
    1719
  • trunk/LayoutTests/accessibility/ios-simulator/tables-lists.html

    r187904 r247330  
    2727</div>
    2828
     29<table border=1 role="presentation">
     30<tr role="presentation"><td role="presentation">table item 1</td></tr>
     31</table>
     32
    2933</div>
    3034
     
    4448        var tableItem = root.childAtIndex(2).childAtIndex(0);
    4549        var landmarkItem = root.childAtIndex(3).childAtIndex(0);
     50        var nonTableItem = root.childAtIndex(4);
    4651
    4752        shouldBe("listItem.traits != initialItem.traits", "true");
     
    5358
    5459        shouldBe("landmarkItem.traits != initialItem.traits", "true");
     60
     61        shouldBe("nonTableItem.traits != tableItem.traits", "true");
    5562    }
    5663
  • trunk/Source/WebCore/ChangeLog

    r247329 r247330  
     12019-07-10  Chris Fleizach  <cfleizach@apple.com>
     2
     3        AX: VoiceOver ignored role="presentation" on <table> HTML elements
     4        https://bugs.webkit.org/show_bug.cgi?id=199659
     5
     6        Reviewed by Zalan Bujtas.
     7
     8        Only include a table ancestor if it's a table we care about for accessibility.
     9
     10        Modified Test: accessibility/ios-simulator/tables-lists.html
     11
     12        * accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:
     13        (-[WebAccessibilityObjectWrapper _accessibilityTableAncestor]):
     14
    1152019-07-10  Robin Morisset  <rmorisset@apple.com>
    216
  • trunk/Source/WebCore/accessibility/ios/WebAccessibilityObjectWrapperIOS.mm

    r247071 r247330  
    593593- (AccessibilityObjectWrapper*)_accessibilityTableAncestor
    594594{
    595    
    596595    if (const AccessibilityObject* parent = AccessibilityObject::matchedParent(*m_object, false, [] (const AccessibilityObject& object) {
    597         return object.isTable();
     596        return object.roleValue() == AccessibilityRole::Table;
    598597    }))
    599598        return parent->wrapper();
Note: See TracChangeset for help on using the changeset viewer.