Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 9d2e9e5acc36482814373ee381ef2e1ca3c941e4
      
https://github.com/WebKit/WebKit/commit/9d2e9e5acc36482814373ee381ef2e1ca3c941e4
  Author: Tyler Wilcock <[email protected]>
  Date:   2026-05-10 (Sun, 10 May 2026)

  Changed paths:
    A LayoutTests/accessibility/mac/serves-as-title-for-ui-elements-expected.txt
    A LayoutTests/accessibility/mac/serves-as-title-for-ui-elements.html
    M Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperMac.mm
    M Tools/WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm

  Log Message:
  -----------
  AX: VoiceOver's Skip redundant labels setting not respected on 
https://marconius.com/fun/wordBop/
https://bugs.webkit.org/show_bug.cgi?id=314120
rdar://176297111

Reviewed by Dominic Mazzoni and Chris Fleizach.

WebKit should expose whether an object is a label for another via the
existing NSAccessibilityServesAsTitleForUIElementsAttribute. VoiceOver
can then use this to identify whether a label is redundant (because the
labelled item will have the label as part of its accessible name).

* LayoutTests/accessibility/mac/serves-as-title-for-ui-elements-expected.txt: 
Added.
* LayoutTests/accessibility/mac/serves-as-title-for-ui-elements.html: Added.
* Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
(-[WebAccessibilityObjectWrapper _additionalAccessibilityAttributeNames:]):
(handleServesAsTitleForUIElementsAttribute):
(createAttributeHandlerMap):
(attributeValueForTesting):
* Tools/WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm:
(WTR::AccessibilityUIElementMac::labelForElementAtIndex):

Canonical link: https://commits.webkit.org/312967@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to