Changeset 280705 in webkit
- Timestamp:
- Aug 5, 2021, 3:47:59 PM (5 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 5 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/accessibility/selected-state-changed-notifications.html (modified) (4 diffs)
-
LayoutTests/platform/ios/TestExpectations (modified) (1 diff)
-
LayoutTests/platform/ios/accessibility/selected-state-changed-notifications-expected.txt (added)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/accessibility/ios/WebAccessibilityObjectWrapperIOS.mm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r280703 r280705 1 2021-08-05 Andres Gonzalez <andresg_22@apple.com> 2 3 VoiceOver is not announcing the state as selected/unselected when an item is selected in a grid. 4 https://bugs.webkit.org/show_bug.cgi?id=228840 5 <rdar://78225826> 6 7 Reviewed by Chris Fleizach. 8 9 * accessibility/selected-state-changed-notifications.html: 10 * platform/ios/TestExpectations: 11 * platform/ios/accessibility/selected-state-changed-notifications-expected.txt: Added. 12 1 13 2021-08-05 Tim Nguyen <ntim@apple.com> 2 14 -
trunk/LayoutTests/accessibility/selected-state-changed-notifications.html
r280633 r280705 32 32 if (window.accessibilityController) { 33 33 window.jsTestIsAsync = true; 34 var platform = accessibilityController.platformName; 34 35 35 36 var notificationCount = 0; … … 43 44 var axSelectable = accessibilityController.accessibleElementById("selectable"); 44 45 shouldBeFalse("axSelectable.isSelected"); 46 // On iOS, the cell element is not exposed to clients, but instead its content. 47 // So make sure that the selected state of the contained static text matches the state of the cell. 48 if (platform == "ios") 49 shouldBeFalse("axSelectable.children[0].isSelected"); 45 50 46 51 axSelectable.press(); … … 50 55 }); 51 56 shouldBeTrue("axSelectable.isSelected"); 57 if (platform == "ios") 58 shouldBeTrue("axSelectable.children[0].isSelected"); 52 59 53 60 axSelectable.press(); … … 56 63 }); 57 64 shouldBeFalse("axSelectable.isSelected"); 65 if (platform == "ios") 66 shouldBeFalse("axSelectable.children[0].isSelected"); 58 67 59 68 finishJSTest(); -
trunk/LayoutTests/platform/ios/TestExpectations
r280530 r280705 2103 2103 webkit.org/b/150366 accessibility/aria-table-attributes.html [ Pass ] 2104 2104 2105 accessibility/selected-state-changed-notifications.html [ Pass ] 2106 2105 2107 # Enable "attachment element" test for iOS 2106 2108 accessibility/attachment-element.html [ Pass ] -
trunk/Source/WebCore/ChangeLog
r280703 r280705 1 2021-08-05 Andres Gonzalez <andresg_22@apple.com> 2 3 VoiceOver is not announcing the state as selected/unselected when an item is selected in a grid. 4 https://bugs.webkit.org/show_bug.cgi?id=228840 5 <rdar://78225826> 6 7 Reviewed by Chris Fleizach. 8 9 Test: accessibility/selected-state-changed-notifications.html. 10 11 On iOS, a table/grid cell element is not exposed to AX clients. Instead 12 the content of the cell is. This patch ensures that if the cell element 13 is selected, the AX objects that represent the content inside the cell 14 will inherit the selected state from the cell. 15 16 * accessibility/ios/WebAccessibilityObjectWrapperIOS.mm: 17 (-[WebAccessibilityObjectWrapper _accessibilityTraitsFromAncestors]): 18 1 19 2021-08-05 Tim Nguyen <ntim@apple.com> 2 20 -
trunk/Source/WebCore/accessibility/ios/WebAccessibilityObjectWrapperIOS.mm
r280529 r280705 697 697 case AccessibilityRole::Heading: 698 698 traits |= [self _axHeaderTrait]; 699 break; 700 case AccessibilityRole::Cell: 701 case AccessibilityRole::GridCell: 702 if (parent->isSelected()) 703 traits |= [self _axSelectedTrait]; 699 704 break; 700 705 default:
Note:
See TracChangeset
for help on using the changeset viewer.