Closed Bug 1826853 Opened 2 years ago Closed 1 year ago

[CtW][tail-end] Sync call RemoteAccessible::CaretLineNumber() is still used in MacOS

Categories

(Core :: Disability Access APIs, defect)

Desktop
Unspecified
defect

Tracking

()

RESOLVED FIXED
115 Branch
Tracking Status
firefox114 --- fixed
firefox115 --- fixed

People

(Reporter: eeejay, Assigned: eeejay)

References

Details

Attachments

(1 file)

A non sync or cache alternative should be used.

Severity: -- → S3

When does VoiceOver actually use this? It seems we've never implemented this correctly. Due to a typo, RemoteAccessible::CaretLineNumber actually gets the caret offset! Furthermore, I couldn't find any way to get the current line number with VO, even in Safari.

Flags: needinfo?(eitan)
See Also: → 1826242

This obviously doesn't work. I do see this implemented in WK and Blink. I think this can be done with the cached selection and line boundaries. I'll take this.

Flags: needinfo?(eitan)
Assignee: nobody → eitan
Status: NEW → ASSIGNED
Pushed by eisaacson@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/28c49102780c
Add a caching version of CaretLineNumber and fix sync version. r=Jamie
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 115 Branch

Comment on attachment 9331651 [details]
Bug 1826853 - Add a caching version of CaretLineNumber and fix sync version. r?Jamie!

Beta/Release Uplift Approval Request

  • User impact if declined: Incorrect caret line number reported by Mac a11y tools. Also needed to uplift bug 1830466.
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: No
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Only affects a11y exposure of caret line number. Covered by automated tests.
  • String changes made/needed:
  • Is Android affected?: No
Attachment #9331651 - Flags: approval-mozilla-beta?

Comment on attachment 9331651 [details]
Bug 1826853 - Add a caching version of CaretLineNumber and fix sync version. r?Jamie!

Approved for 114 beta 5, thanks.

Attachment #9331651 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: