[CTW] Y coordinate incorrect for lines other than the first inside <pre><code>
Categories
(Core :: Disability Access APIs, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox110 | --- | fixed |
People
(Reporter: Jamie, Assigned: morgan)
References
(Blocks 2 open bugs)
Details
(Whiteboard: [ctw-m4])
Attachments
(1 file)
(deleted),
text/x-phabricator-request
|
Details |
Spun off bug 1801756 comment 30.
This is very similar to bug 1797222, but for some reason, the fix there doesn't work in this case.
STR:
- Open this test case:
data:text/html,<pre><code>ab%0acd
- Get the Accessible for the single text container in the document.
- Call CharBounds on it with offset 0. Note the coordinates.
- Call CharBounds on it with offset 3.
- Expected: Larger y coordinate (because offset 3 is on the second line).
- Actual: The y coordinate is the same as in step 3).
Impact: This breaks NVDA mouse tracking when this occurs; e.g. in Bugzilla comment code blocks.
Comment 1•2 years ago
|
||
This also has the effect that the JAWS cursor cannot access the line that has ab in it. Only cd is visible to JAWS. JaWS uses the bounds to create a virtual screen representation for the JAWS cursor from the accessibles in Firefox, since GDI hooking or other screen scraping methods don't work anyway. This would also cause simulated clicks to go to wrong places.
Reporter | ||
Comment 2•2 years ago
|
||
This is not specific to <code>
. It also happens with <span>
:
data:text/html,<pre><span>a%0ab%0ac
Curiously, if you use a non-inline element, things work as expected:
data:text/html,<pre><div>a%0ab%0ac
So there's something weird going on with intervening inline elements here.
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 3•2 years ago
|
||
Reporter | ||
Updated•2 years ago
|
Comment 5•2 years ago
|
||
Backed out for causing ancestor related assertion failures.
Failure log: https://treeherder.mozilla.org/logviewer?job_id=402103446&repo=autoland
Also this TV failure: https://treeherder.mozilla.org/logviewer?job_id=402107477&repo=autoland
Backout link: https://hg.mozilla.org/integration/autoland/rev/a59ca89ec14f2f6c7e86f1bcdad00adadc388b74
Assignee | ||
Comment 6•2 years ago
|
||
Comment 8•2 years ago
|
||
bugherder |
Description
•