Closed Bug 1950782 Opened 27 days ago Closed 21 days ago

UIA Text pattern reports SupportedTextSelection_None on documents

Categories

(Core :: Disability Access APIs, defect)

Desktop
Windows
defect

Tracking

()

RESOLVED FIXED
138 Branch
Tracking Status
firefox138 --- fixed

People

(Reporter: Jamie, Assigned: Jamie)

References

(Blocks 2 open bugs)

Details

Attachments

(2 files)

If you query the UIA Text pattern's SupportedTextSelection property on a document, it returns SupportedTextSelection_None. This is because we don't expose the SELECTABLE_TEXT state on DocAccessibles in the core tree.

We already had code to expose SELECTABLE_TEXT in HyperTextAccessible, from which DocAccessible inherits.
However, DocAccessible overrides the method and doesn't call the HyperTextAccessible implementation.
We don't want to do that because it does work that isn't necessary for DocAccessible.
In addition, we need to use a different layout frame for the document.
See the code comments for details.
Specific code has been added to DocAccessible to expose this state.

This fixes the UIA Text pattern's SupportedTextSelection property on documents.

For now, the core SELECTABLE_TEXT state is only exposed on text containers, not on text leaves.
We may want to reconsider this at some point.
For now, just handle this case in the UIA code, since that's the only place it matters.

Pushed by jteh@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/cb94368d2970 part 1: Expose the SELECTABLE_TEXT state on DocAccessibles when appropriate. r=nlapre https://hg.mozilla.org/integration/autoland/rev/1c9ee07f74ec part 2: Fix UIA SupportedTextSelection on text leaves. r=nlapre
Flags: needinfo?(jteh)
Pushed by jteh@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e71f3c882012 part 1: Expose the SELECTABLE_TEXT state on DocAccessibles when appropriate. r=nlapre,devtools-reviewers,nchevobbe https://hg.mozilla.org/integration/autoland/rev/9916a6e16cf0 part 2: Fix UIA SupportedTextSelection on text leaves. r=nlapre
Status: NEW → RESOLVED
Closed: 21 days ago
Resolution: --- → FIXED
Target Milestone: --- → 138 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: