Closed Bug 1783094 Opened 2 years ago Closed 2 years ago

Support RemoteAccessible relation targets on Windows when the cache is disabled

Categories

(Core :: Disability Access APIs, task)

Desktop
Windows
task

Tracking

()

RESOLVED FIXED
105 Branch
Tracking Status
firefox105 --- fixed

People

(Reporter: Jamie, Assigned: Jamie)

References

Details

(Whiteboard: [ctw-m3])

Attachments

(1 file)

Currently, LocalAccessible::RelationByType can never return RemoteAccessibles. After bug 1782172, the EMBEDS relation might return a RemoteAccessible.

ia2Accessible relation methods use MsaaAccessible::GetFrom. When CTW is enabled, this is fine. However, when the cache is disabled, MsaaAccessible::GetFrom will return a stub which only holds the id and will crash if used by clients. We need to use MsaaAccessible::NativeAccessible instead.

Fixing this is annoying because we won't need this fix at all once CTW is the only code path. Such is life.

When the cache is disabled, MsaaAccessible::GetFrom won't give us an object we can return to the client.
Instead, we must use MsaaAccessible::NativeAccessible, which knows how to return a COM proxy in this case.

Depends on: 1781536
Pushed by jteh@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ac7902988645 Support non-cached RemoteAccessible relation targets in ia2Accessible relation methods. r=morgan
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 105 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: