Closed Bug 2067593 Opened 1 month ago Closed 6 days ago

Opening "quick find" by typing "/" only works after using Ctrl-f once

Categories

(Thunderbird :: Message Reader UI, defect)

Thunderbird 151
defect

Tracking

(thunderbird_esr153 affected, thunderbird155 affected)

RESOLVED FIXED
159 Branch
Tracking Status
thunderbird_esr153 --- affected
thunderbird155 --- affected

People

(Reporter: fstboard-mozilla, Assigned: welpy-cw)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: regression)

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:153.0) Gecko/20100101 Firefox/153.0

Steps to reproduce:

After clicking into a message body in TB 140esr pressing the slash "/" opens the "quick find" field where I can search text in the message body. In TB 153esr (and 153.0.4) the slash does nothing when pressed after restarting thunderbird.
But after opening the "Find in page" dialog by Ctrl-f once, the slash will then open the "quick find" for any message body until TB is restarted.
So every time after restarting TB 153, opening the quick find dialog by pressing the slash must first be enabled by using Ctrl-f and will then work for the rest of the session.
I guess it's a bug as I don't see any reason why a shortcut key should only work after using another shortcut once...?

This is "manual FAYT (find as you type)". In theory this should be hooked up through the FindBar actors. https://searchfox.org/comm-central/rev/c1db9bdfbcd3a44a655f9b340e1f6301363395a5/mail/components/MailGlue.sys.mjs#146-169

However I can reproduce it not working in messages, or any of the browsers in the 3pane for that matter. We might be capturing key events in a way that they never reach the actor?

Status: UNCONFIRMED → NEW
Ever confirmed: true

Alice can you find the regression?

Severity: -- → S4
Flags: needinfo?(alice0775)
Blocks: tb153found
Flags: needinfo?(h.w.forms)
Version: Thunderbird 153 → Thunderbird 151

Register lazy findbars with the FindBar actor as proxies so pressing / can
materialize and use the findbar before Ctrl-F has been pressed. The wrapper only
registers while no real findbar exists, and retries once on the first browser
load for browsers that have no window global yet, so it never shadows the
findbar's own registration.

Add browser test coverage for opening quick find with / as the first find
shortcut.

Assignee: nobody → h.w.forms
Attachment #9650136 - Attachment description: WIP: Bug 2067593 - Materialize the lazy findbar for manual FAYT. r=thunderbird-reviewers → Bug 2067593 - Materialize the lazy findbar for manual FAYT. r=#thunderbird-reviewers
Status: NEW → ASSIGNED
Flags: needinfo?(h.w.forms)
Target Milestone: --- → 159 Branch

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/6e2c072c3417
Materialize the lazy findbar for manual FAYT. r=mkmelin

Status: ASSIGNED → RESOLVED
Closed: 6 days ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: