Open Bug 1740355 Opened 3 years ago Updated 5 months ago

Focus jumps to unwanted spots after closing some composition notifications, e.g. Encrypted Bcc notification & inline attachment reminder

Categories

(MailNews Core :: Security: OpenPGP, enhancement)

Thunderbird 91
enhancement

Tracking

(Not tracked)

People

(Reporter: thomas8, Unassigned)

References

(Depends on 1 open bug)

Details

We should actively manage focus after notifications get closed in composition, same/similar to what I've done in Bug 1716823.

(In reply to Thomas D. (:thomas8) from bug 1716823 comment #11)

(In reply to Lasana Murray from bug 1716823 comment #10)

Thomas did you figure out why the focus is lost and set to the contacts sidebar?

No. Notification gets focus when you click a notification button, then notification goes away, meaning the focused element is gone. Then I guess there's a mechanism either attached to the notifications or to composition in general that if visible focus was lost, it should be reset to the first visible element - with sidebar, that's sidebar AB context button, without sidebar, that's identity selector (and I saw focus there after clicking notification button before my patch).

It would be good if we could figure out where exactly focus is controlled, but otoh it may not help much: Fallback focus (in case of focus lost) might be different from what we want for those notifications, which is active focus control depending on scenario.

I can add focus control as a followup to bug 1671891 if you want.
We can probably reuse the focus control code from bug 1716823 for encrypted-Bcc notification, but attachment reminder might need something different to preserve a previous focus in subject even when it's not empty.

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