Closed Bug 1689445 Opened 3 years ago Closed 3 years ago

Make accessibility retrieval synchronous in AccessibilityUtils.

Categories

(Testing :: General, task, P3)

Default
task

Tracking

(firefox87 fixed)

RESOLVED FIXED
87 Branch
Tracking Status
firefox87 --- fixed

People

(Reporter: yzen, Assigned: yzen)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

Right now AccessibilityUtils retrieve accessible objects asynchronously. This is because accessible is not guaranteed to be created because layout was not flushed. We either wait for an accessibility event and then check for an accessible or, in the worst case scenario, we wait for 1 second and check if accessible was created.

We should be able to do this synchronously if we manage to force layout flush and refresh that creates the accessible node.

This is desired because we would require far less changes to existing tests and testing tools that assume sync when performing mouse and keyboard interactions.

Depends on: 1690456
Pushed by yura.zenevich@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/bcb4ba398ee0
make accessible retrieval synchronous. r=Jamie
https://hg.mozilla.org/integration/autoland/rev/2b1ec882c4c1
revert EventUtils.sendMouseEvent back to being sync. r=jmaher
Pushed by yura.zenevich@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/a5a33dae3589
make accessible retrieval synchronous. r=Jamie
https://hg.mozilla.org/integration/autoland/rev/d06c9fb6d902
revert EventUtils.sendMouseEvent back to being sync. r=jmaher
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 87 Branch

fixed

Flags: needinfo?(yzenevich)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: