Open Bug 1924706 Opened 1 year ago Updated 1 year ago

Leading space is removed after executing "find" for the second time

Categories

(Toolkit :: Find Toolbar, enhancement, P3)

enhancement

Tracking

()

People

(Reporter: selim, Unassigned)

Details

Steps to reproduce:

  1. Go to https://en.wikipedia.org/wiki/List_of_The_Simpsons_guest_stars_(seasons_21%E2%80%93present)
  2. Press Ctrl+F to launch quick find and search for " bell" (note the leading space). This should let the user find surnames beginning with "bell".
  3. 5 matches should be found.
  4. Now press Ctrl+F to find again.
  5. Leading space is removed and the match count is now 9, including names like "Neve Campbell".

The severity field is not set for this bug.
:enndeakin, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(enndeakin)

Seems like we should adjust https://searchfox.org/mozilla-central/source/toolkit/content/widgets/findbar.js#1131-1158 to not prefill if there is a find selection and only prefill for regular selections.

Severity: -- → S3
Type: defect → enhancement
Flags: needinfo?(enndeakin)
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.