Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 7e5fd7db4dfb19d6b4799defe68edba2e009dad0
https://github.com/WebKit/WebKit/commit/7e5fd7db4dfb19d6b4799defe68edba2e009dad0
Author: Anne van Kesteren <[email protected]>
Date: 2026-10-10 (Sat, 10 Oct 2026)
Changed paths:
A
LayoutTests/accessibility/mac/base-select-multiple-dropdown-role-expected.txt
A
LayoutTests/accessibility/mac/base-select-multiple-dropdown-role-without-native-dropdown-expected.txt
A
LayoutTests/accessibility/mac/base-select-multiple-dropdown-role-without-native-dropdown.html
A LayoutTests/accessibility/mac/base-select-multiple-dropdown-role.html
M Source/WebCore/accessibility/AccessibilityRenderObject.cpp
Log Message:
-----------
AX: a base appearance multi-select dropdown box is exposed as a list box
https://bugs.webkit.org/show_bug.cgi?id=326996
rdar://189621889
Reviewed by Tyler Wilcock.
AccessibilityRenderObject::determineAccessibilityRole() gives a select that
uses a menu list the
pop-up button role, unless it is a multi-select, and any other select the list
box role. A native
dropdown box is an AccessibilityMenuList, which has its own role, so only a
select with a base
appearance picker gets here. A multi-select dropdown box with a base appearance
picker therefore
became a list box, although it renders as a button with a picker. Without
HTMLEnhancedSelectMultipleDropdownBoxEnabled it does not use a menu list either.
Base the role on the box type of the select instead, as HTML-AAM maps a select
rendered as a
drop-down box to combobox and one rendered as a list box to listbox.
Tests:
accessibility/mac/base-select-multiple-dropdown-role-without-native-dropdown.html
accessibility/mac/base-select-multiple-dropdown-role.html
Canonical link: https://commits.webkit.org/323321@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications