Closed Bug 1690783 Opened 4 years ago Closed 4 years ago

Number of scrollbar tick marks is incorrect

Categories

(Toolkit :: Find Toolbar, defect)

Desktop
Windows 10
defect

Tracking

()

VERIFIED FIXED
87 Branch
Tracking Status
firefox87 --- verified

People

(Reporter: alice0775, Assigned: enndeakin)

References

Details

(Keywords: nightly-community)

Attachments

(2 files)

Build Autoland changeset 8d8a1ee8100cb65b9c54c95d3bb5aa659a0853e4

Steps to reproduce:

  1. Open https://ftp.mozilla.org/pub/firefox/nightly/
  2. Reduce browser height so that vertical scrollbar will appear
  3. Open find bar (Ctrl+F)
  4. Turn on [Highlight All]
  5. Type 2021 (you should not use cut & paste)

Actual results:
There are two tick marks on the scrollbar

Expected Results:
There should be one.
Because, number of find matches is one n this case.

Early submission? Is this about bug 259640 comment 59?

Flags: needinfo?(alice0775)
Attached image screenshot
Flags: needinfo?(alice0775)
Summary: Number of → Number of scrollbar tick marks is incorrect

I think this is caused by the later change to move the code into FinderHighlighter.jsm. For some reason, it doesn't really finish up when it says it does, (in FinderHighlight.update), so the value is the same as the old value.

I might just move the code back into Finder.jsm, or at least the call to updateScrollMarks.

Assignee: nobody → enndeakin
Status: NEW → ASSIGNED

My observations:

  1. Using the STR I only see one indicator line using Ctrl-F.

  2. Using 'Search for text when you start typing' displays 2 indicator bars. However when I scroll the indicators disappear. Perhaps this method of searching is on a page by page basis.

Pushed by neil@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5b31293f0b8d move call to updateScrollMarks to occur after the highlight and match count is determined to better ensure that the found ranges have been determined, r=mikedeboer
Pushed by neil@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4f734f1cbcd0 move call to updateScrollMarks to occur after the highlight and match count is determined to better ensure that the found ranges have been determined, r=mikedeboer
Flags: needinfo?(enndeakin)
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 87 Branch

I cannot reproduce this issue after the fix. The number of highlight ticks is correct when using the STR in comment 0 or in any other situation I have attempted to reproduce.
@Alice: Can you also confirm this fix? Thank you!

Flags: needinfo?(alice0775)

The issue is no longer reproduced on Nightly87.0a1(20210216215129).

Status: RESOLVED → VERIFIED
Flags: needinfo?(alice0775)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: