forked from Pissandshittium/pissandshittium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re-land: Fire live region events when a node is removed.
Adds an AXLiveRegionTracker class to keep track of live regions in an AXTree. Uses it to fix a bug where we weren't firing the LIVE_REGION_CHANGED event on the live root when a node was removed, only when a node was added or changed. I'm going to follow this up with code that optionally computes the text of a live region change, that we can use on Android, Chrome OS, and some older versions of macOS. So AXLiveRegionTracker is simple now, but it will be a convenient place to put that logic. Originally landed as https://crrev.com/c/1988742, but reverted due to a UAF. The issue was that node deletion always called FireLiveRegionEvents for the deleted node. In the case that the deleted node was live region root, this would trigger a LIVE_REGION_CHANGED on the deleted node. Instead of calling FireLiveRegionEvents for deleted nodes, this version will only trigger a LIVE_REGION_CHANGED event for the root on deletion and only when the deleted node is not itself the root of the live region. Bug: 560599, 930763 Change-Id: I3fbcd9c122a55e7a59f6cfbe61a116409cefaba6 AX-RelNotes: Fix an issue where VoiceOver failed to announce cleared live regions that were filled with the previous text. Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3013676 Commit-Queue: Martin Robinson <mrobinson@igalia.com> Reviewed-by: Nektarios Paisios <nektar@chromium.org> Reviewed-by: Kevin Babbitt <kbabbitt@microsoft.com> Reviewed-by: Dominic Mazzoni <dmazzoni@chromium.org> Cr-Commit-Position: refs/heads/master@{#908399}
- Loading branch information
Showing
6 changed files
with
351 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.