Title: [247330] trunk
Revision
247330
Author
[email protected]
Date
2019-07-10 15:42:21 -0700 (Wed, 10 Jul 2019)

Log 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:

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (247329 => 247330)


--- trunk/LayoutTests/ChangeLog	2019-07-10 22:33:56 UTC (rev 247329)
+++ trunk/LayoutTests/ChangeLog	2019-07-10 22:42:21 UTC (rev 247330)
@@ -1,3 +1,13 @@
+2019-07-10  Chris Fleizach  <[email protected]>
+
+        AX: VoiceOver ignored role="presentation" on <table> HTML elements
+        https://bugs.webkit.org/show_bug.cgi?id=199659
+
+        Reviewed by Zalan Bujtas.
+
+        * accessibility/ios-simulator/tables-lists-expected.txt:
+        * accessibility/ios-simulator/tables-lists.html:
+
 2019-07-10  Ryosuke Niwa  <[email protected]>
 
         [iOS] REGRESSION(r244851): Revealing caret sometimes fails when content inset is used

Modified: trunk/LayoutTests/accessibility/ios-simulator/tables-lists-expected.txt (247329 => 247330)


--- trunk/LayoutTests/accessibility/ios-simulator/tables-lists-expected.txt	2019-07-10 22:33:56 UTC (rev 247329)
+++ trunk/LayoutTests/accessibility/ios-simulator/tables-lists-expected.txt	2019-07-10 22:42:21 UTC (rev 247330)
@@ -2,6 +2,7 @@
 list item 1
 table item 1	table item 2	table item 3
 landmark 1
+table item 1
 This test makes sure that items in lists, tables and landmarks have different traits on them, because they're contained in different items.
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
@@ -13,6 +14,7 @@
 PASS tableItem.traits != initialItem.traits is true
 PASS tableItem.traits != landmarkItem.traits is true
 PASS landmarkItem.traits != initialItem.traits is true
+PASS nonTableItem.traits != tableItem.traits is true
 PASS successfullyParsed is true
 
 TEST COMPLETE

Modified: trunk/LayoutTests/accessibility/ios-simulator/tables-lists.html (247329 => 247330)


--- trunk/LayoutTests/accessibility/ios-simulator/tables-lists.html	2019-07-10 22:33:56 UTC (rev 247329)
+++ trunk/LayoutTests/accessibility/ios-simulator/tables-lists.html	2019-07-10 22:42:21 UTC (rev 247330)
@@ -26,6 +26,10 @@
 <b>landmark 1</b>
 </div>
 
+<table border=1 role="presentation">
+<tr role="presentation"><td role="presentation">table item 1</td></tr>
+</table>
+
 </div>
 
 <p id="description"></p>
@@ -43,6 +47,7 @@
         var listItem = root.childAtIndex(1).childAtIndex(0).childAtIndex(0);
         var tableItem = root.childAtIndex(2).childAtIndex(0);
         var landmarkItem = root.childAtIndex(3).childAtIndex(0);
+        var nonTableItem = root.childAtIndex(4);
 
         shouldBe("listItem.traits != initialItem.traits", "true");
         shouldBe("listItem.traits != tableItem.traits", "true");
@@ -52,6 +57,8 @@
         shouldBe("tableItem.traits != landmarkItem.traits", "true");
 
         shouldBe("landmarkItem.traits != initialItem.traits", "true");
+
+        shouldBe("nonTableItem.traits != tableItem.traits", "true");
     }
 
     successfullyParsed = true;

Modified: trunk/Source/WebCore/ChangeLog (247329 => 247330)


--- trunk/Source/WebCore/ChangeLog	2019-07-10 22:33:56 UTC (rev 247329)
+++ trunk/Source/WebCore/ChangeLog	2019-07-10 22:42:21 UTC (rev 247330)
@@ -1,3 +1,17 @@
+2019-07-10  Chris Fleizach  <[email protected]>
+
+        AX: VoiceOver ignored role="presentation" on <table> HTML elements
+        https://bugs.webkit.org/show_bug.cgi?id=199659
+
+        Reviewed by Zalan Bujtas.
+
+        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]):
+
 2019-07-10  Robin Morisset  <[email protected]>
 
         [WHLSL] Track code locations correctly throughout the compiler to get good error messages

Modified: trunk/Source/WebCore/accessibility/ios/WebAccessibilityObjectWrapperIOS.mm (247329 => 247330)


--- trunk/Source/WebCore/accessibility/ios/WebAccessibilityObjectWrapperIOS.mm	2019-07-10 22:33:56 UTC (rev 247329)
+++ trunk/Source/WebCore/accessibility/ios/WebAccessibilityObjectWrapperIOS.mm	2019-07-10 22:42:21 UTC (rev 247330)
@@ -592,9 +592,8 @@
 
 - (AccessibilityObjectWrapper*)_accessibilityTableAncestor
 {
-    
     if (const AccessibilityObject* parent = AccessibilityObject::matchedParent(*m_object, false, [] (const AccessibilityObject& object) {
-        return object.isTable();
+        return object.roleValue() == AccessibilityRole::Table;
     }))
         return parent->wrapper();
     return nil;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to