[UIA] Support for querying plain text
Categories
(Core :: Disability Access APIs, task)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox129 | --- | fixed |
People
(Reporter: Jamie, Assigned: Jamie)
References
(Blocks 1 open bug)
Details
Attachments
(6 files)
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review |
This work will lay the foundations for supporting the UIA Text and TextRange patterns. This will involve the following:
- Create a new object for UIA text ranges which can be constructed with a TextLeafRange and includes stubs for the ITextRangeProvider methods.
- A strong reference cannot be held to a TextLeafRange. Therefore, add code to store and retrieve it.
- Create a class to implement ITextProvider, inherited into ia2AccessibleHypertext. Support it only on editable text boxes for now and implement only ITextProvider::get_DocumentRange, with stubs for the other methods.
- Implement ITextRangeProvider::GetText.
- Implement ITextRangeProvider Clone, Compare, CompareEndpoints, ExpandToEnclosingUnit, Move, MoveEndpointByRange AND MoveEndpointByUnit. The Move and Expand methods should be restricted to the containing text box.
| Assignee | ||
Comment 1•1 year ago
|
||
| Assignee | ||
Comment 2•1 year ago
|
||
The root start and end points will later be used to restrict movement within the Accessible exposing the Text pattern from which the range was created.
| Assignee | ||
Comment 3•1 year ago
|
||
Unfortunately, this can't be usefully tested without implementing another method, so tests will come in the next patch.
| Assignee | ||
Comment 4•1 year ago
|
||
| Assignee | ||
Comment 5•1 year ago
|
||
This will be needed for the Compare, CompareEndpoints and MoveEndpointByRange methods.
| Assignee | ||
Comment 6•1 year ago
|
||
| Assignee | ||
Comment 8•1 year ago
|
||
I'm rolling documents into this as well. See bug 1901458 comment 2 for details.
Updated•1 year ago
|
Comment 10•1 year ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/fc3cc31ee8f7
https://hg.mozilla.org/mozilla-central/rev/b3c3b5cc473e
https://hg.mozilla.org/mozilla-central/rev/a50db51f3a76
https://hg.mozilla.org/mozilla-central/rev/afaeb26a2c16
https://hg.mozilla.org/mozilla-central/rev/eae561f4bb0a
https://hg.mozilla.org/mozilla-central/rev/7f421023d32a
Description
•