Closed
Bug 1764249
Opened 3 years ago
Closed 3 years ago
With the cache enabled, document incorrectly reports text selection when there is a caret
Categories
(Core :: Disability Access APIs, defect)
Core
Disability Access APIs
Tracking
()
VERIFIED
FIXED
101 Branch
Tracking | Status | |
---|---|---|
firefox-esr91 | --- | unaffected |
firefox99 | --- | wontfix |
firefox100 | --- | wontfix |
firefox101 | --- | verified |
People
(Reporter: Jamie, Assigned: Jamie)
References
(Blocks 1 open bug, Regression)
Details
(Keywords: regression, Whiteboard: [ctw-m2])
Attachments
(1 file)
(deleted),
text/x-phabricator-request
|
Details |
STR:
- Set the pref accessibility.cache.enabled to true.
- Open this test case:
data:text/html,<div role="group"><div contenteditable>test</div></div>
- Focus the editable area.
- Use the arrow keys to move the caret.
- Query the selection count on the document accessible.
- Expected: 0
- Actual: 1
This behaves correctly when the cache is disabled. When it's enabled, a collapsed selection in a descendant gets reported on the DocAccessible. I don't know why yet.
Assignee | ||
Updated•3 years ago
|
Blocks: a11y-ctw-text
Whiteboard: [ctw-m2]
Updated•3 years ago
|
Keywords: regression
Comment 1•3 years ago
|
||
Set release status flags based on info from the regressing bug 1741793
status-firefox100:
--- → affected
status-firefox101:
--- → affected
status-firefox99:
--- → affected
status-firefox-esr91:
--- → unaffected
Updated•3 years ago
|
Has Regression Range: --- → yes
Updated•3 years ago
|
Assignee | ||
Comment 2•3 years ago
|
||
There's no point cropping ranges when called on the document, but we still want to remove collapsed ranges.
The path to hell is paved with premature optimisation. :(
Pushed by jteh@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/bbf84e358f0b
Make HyperTextAccessibleBase::CroppedSelectionRanges remove collapsed ranges when called on a document. r=morgan
Comment 4•3 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 101 Branch
Updated•2 years ago
|
Flags: qe-verify+
Comment 5•2 years ago
|
||
Reproducible on Firefox 100.0(20220428192727) on macOS 11. Confirmed as fixed on Firefox 101.0b5(20220510144626) and Nightly 102.0a1(20220512094957) on macOS 11, Win10 64 bits and Ubuntu 20.04.
You need to log in
before you can comment on or make changes to this bug.
Description
•