Open Bug 1822457 Opened 1 year ago Updated 10 months ago

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


(Core :: Disability Access APIs, task)





(Reporter: Jamie, Unassigned)


(Blocks 1 open bug)


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.