Closed Bug 1833134 Opened 2 years ago Closed 2 years ago

Focus in message body not preserved in tabs unless you tab into the message

Categories

(Thunderbird :: Message Reader UI, defect)

Thunderbird 114
defect

Tracking

(thunderbird_esr102 unaffected, thunderbird114 fixed)

RESOLVED FIXED
115 Branch
Tracking Status
thunderbird_esr102 --- unaffected
thunderbird114 --- fixed

People

(Reporter: bj, Assigned: darktrojan)

References

Details

(Keywords: regression, Whiteboard: [Supernova3p])

Attachments

(1 file)

Using 114.0b1 on Ubuntu with XFCE.

Paging up and down in a message works in a new tab, but when switching to another tab and back the page up and page down no longer work. Clicking in the body allows page up and page down to work while viewing the tab, but this stops again after switching tabs.

I found two ways to preserve page up/down across tab switches:
A) Select the window and tab until focus is in the body. Then page up/down will work, and keep working when returning to the tab.
B) Select the window, click in the body, press tab. Then page up/down will work, and keep working when returning to the tab. (This was only done in a message with an element that could be tabbed to. It might be possible to have a simple message where this doesn't work.)

Steps to reproduce:

  1. Open a long message in a tab.
  2. Press Page Down.
  3. Click the primary Thunderbird tab.'
  4. Click the message tab.
  5. Press Page Down.
  6. Click in the message body.
  7. Press page down.
  8. Click the primary Thunderbird tab.'
  9. Click the message tab.
  10. Press Page Down.

Expected:
2, 5, 7, 10) The Page Down press causes the message body to scroll.

Actual:
2, 7) The Page Down press causes the message body to scroll.
5, 10) The Page Down press has no apparent effect.

This problem doesn't occur with Thunderbird 102.10.0 (but the message in a tab scrolls to the top each time the message is opened -- bug 1786302).

Whiteboard: [Supernova3p]

Confirming for Daily 115.0a1 (2023-05-17) (64-bit), Win10, exactly as described.
Weirdly, depending on how the message body was focused, it may work or fail.
As summary indicates (but not mentioned in steps yet), the following works:

  • When returning to message tab from another tab, use Tab to focus message body.
  • Then focus another tab like 3-pane, and go back to message tab.
    -> Page up/down will still work. But when message body originally had auto-focus, or mouse focus, it won't work after returning to the tab. Weird!
Blocks: tb-new-3pane
Severity: -- → S3
  • Focus is set on the message pane of message tabs restored at start-up.
  • The active element is correctly identified and saved when switching tabs.
  • Containers with an ARIA active descendant are given focus, instead of their descendant.
Assignee: nobody → geoff
Status: NEW → ASSIGNED
Target Milestone: --- → 115 Branch

Pushed by solange@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/1388ce1cc6a7
Fix several problems with restoring focus on tab switch. r=aleca

Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Attachment #9335611 - Flags: approval-comm-beta?

Comment on attachment 9335611 [details]
Bug 1833134 - Fix several problems with restoring focus on tab switch. r=aleca

[Triage Comment]
Approved for beta

Attachment #9335611 - Flags: approval-comm-beta? → approval-comm-beta+

I installed beta 6 and the issue is fixed. Thank you!

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

Attachment

General

Created:
Updated:
Size: