Closed Bug 2069082 Opened 2 months ago Closed 2 months ago

Update live regions implementation in Android

Categories

(Core :: Disability Access APIs, task)

All
Android
task

Tracking

()

RESOLVED FIXED
158 Branch
Tracking Status
firefox158 --- fixed

People

(Reporter: eeejay, Assigned: eeejay)

References

Details

Attachments

(2 external files)

Our current implementation relies on the TYPE_ANNOUNCEMENT event (which has just been deprecated, how to implement ariaNotify is another question).

Chrome implements live regions by sending TYPE_WINDOW_CONTENT_CHANGED events with a change type of CONTENT_CHANGE_TYPE_SUBTREE for each text leaf in the relevant subtree. This obviously poses serious questions about live regions that receive very large subtrees, or very large atomic regions with a single mutation. Talkback does not currently know to walk a region/subtree if the event is sent from the root instead.

Chrome mitigates the chatter somewhat by pruning many text leaves in the tree, but this obviously does not solve the problem. I propose imposing an arbitrary limit on how many events to send.

Blocks: 908042, 1185617
Assignee: nobody → eitan
Status: NEW → ASSIGNED

This removes the old announcement based live regions and relies on a
TYPE_WINDOW_CONTENT_CHANGED events.

There is an arbitrary event limiter in there
so we don't saturate the platform with many events. There is anyway a
limit to how much of a live region any AT can reliably convey.

I also removed the image labeled-by test since it uses a similar
codepath to a any name changed events and we already have non-OS
coverage for that.

Surely that announcement event is used all over the place in native apps? It being deprecated seems very incorrect, kinda like how Microsoft deprecated IAccessible::accNavigate but anyone with any sense keeps using and implementing it.

Backed out for causing build bustages
Backout Link
Push with failures
Failure Log
Failure line /builds/worker/checkouts/gecko/accessible/android/SessionAccessibility.cpp:X:42: error: comparison of integers of different signs: 'uint32_t' (aka 'unsigned int') and 'int32_t' (aka 'int') [-Werror,-Wsign-compare]

Flags: needinfo?(eitan)
Flags: needinfo?(eitan)
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 158 Branch
QA Whiteboard: [qa-triage-done-c159/b158]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: