Update live regions implementation in Android
Categories
(Core :: Disability Access APIs, task)
Tracking
()
| 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.
| Assignee | ||
Updated•2 months ago
|
| Assignee | ||
Comment 1•2 months ago
|
||
Updated•2 months ago
|
| Assignee | ||
Comment 2•2 months ago
|
||
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.
Comment 3•2 months ago
|
||
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.
Comment 5•2 months ago
|
||
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]
| Assignee | ||
Updated•2 months ago
|
Comment 7•2 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/02a36ca077fb
https://hg.mozilla.org/mozilla-central/rev/c198d7ed2250
Updated•2 months ago
|
Description
•