Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 28782b6916c6f0378f75acbf4911925c1c7d2f4f
https://github.com/WebKit/WebKit/commit/28782b6916c6f0378f75acbf4911925c1c7d2f4f
Author: Joshua Hoffman <[email protected]>
Date: 2025-12-02 (Tue, 02 Dec 2025)
Changed paths:
A
LayoutTests/accessibility/mac/live-regions/atomic-region-node-added-expected.txt
A LayoutTests/accessibility/mac/live-regions/atomic-region-node-added.html
M Source/WebCore/accessibility/AXLiveRegionManager.cpp
M Source/WebCore/accessibility/AXLiveRegionManager.h
Log Message:
-----------
AX: Live regions should track descendants to handle all aria-relevant values
https://bugs.webkit.org/show_bug.cgi?id=303393
rdar://165330472
Reviewed by Tyler Wilcock.
Previously, we were not tracking descendant changes for aria-atomic=true
regions. This meant
that all types of changes were treated as text-changes, rather than also
considering node
additions and removals.
To properly support those last two values of aria-relevant, we can keep track
of the
descendants of a region, and compute the added/removed/changed announcement
more accurately.
Test: accessibility/mac/live-regions/atomic-region-node-added.html
*
LayoutTests/accessibility/mac/live-regions/atomic-region-node-added-expected.txt:
Added.
* LayoutTests/accessibility/mac/live-regions/atomic-region-node-added.html:
Added.
* Source/WebCore/accessibility/AXLiveRegionManager.cpp:
(WebCore::AXLiveRegionManager::handleLiveRegionChange):
(WebCore::AXLiveRegionManager::buildLiveRegionSnapshot const):
(WebCore::AXLiveRegionManager::computeChanges const):
(WebCore::AXLiveRegionManager::computeAnnouncement const):
* Source/WebCore/accessibility/AXLiveRegionManager.h:
Canonical link: https://commits.webkit.org/303812@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications