Open Bug 1822457 Opened 1 year ago Updated 1 year ago

[CTW] Use the cached focus instead of PDocAccessible::RestoreFocus

Categories

(Core :: Disability Access APIs, task)

task

Tracking

()

People

(Reporter: Jamie, Unassigned)

References

(Blocks 1 open bug)

Details

When a pop-up such as a menu or select dropdown is dismissed, we use PDocAccessible::RestoreFocus to ask the content process to force a focus event. We don't need to do this now because we cache the focus for each remote document (DocAccessibleParent::mFocus/GetFocusedAcc). We should use that instead, as it avoids an IPC round trip and will likely be more reliable (avoids some race conditions).

To do this, we'll need to cache the caret rect, since Windows needs that when firing focus events.

You need to log in before you can comment on or make changes to this bug.