Open Bug 1764687 Opened 4 years ago Updated 1 year ago

Find items becomes misaligned in long line

Categories

(Toolkit :: Find Toolbar, defect)

Firefox 99
defect

Tracking

()

Tracking Status
firefox-esr91 --- unaffected
firefox99 --- wontfix
firefox100 --- wontfix
firefox101 --- wontfix
firefox102 --- fix-optional

People

(Reporter: cathoderaydude, Unassigned)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

Attached image misaligned search.png

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:99.0) Gecko/20100101 Firefox/99.0

Steps to reproduce:

Navigate to Wordle: https://www.nytimes.com/games/wordle/index.html
View Source
Navigate to the javascript file containing the game and select it
You are now looking at view-source:https://www.nytimes.com/games/wordle/main.e17c80f8.js
(yes, I was cheating)
Search for "unk" or "ren"
Press enter to "find next" repeatedly
Or, search in reverse to find the last result on the page.

Actual results:

Each instance of "unk" or "ren" is highlighted in turn, until the horizontal scrollbar is about at the 50% point
After this, search results become severely misaligned
They have the correct width, but appear over unmatched text like "," and are sometimes not even character-aligned

Expected results:

Each enter press should have highlighted one instance of "unk" or "ren" until the end of the line.

The Bugbug bot thinks this bug should belong to the 'Firefox::Search' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Search

Regression range (Win10) points to bug 1607913.

Found commit message:
Bug 1607913 - Use Consolas instead of Courier New in Windows monospace font prefs. r=jfkthame

Severity: -- → S3
Status: UNCONFIRMED → NEW
Has Regression Range: --- → yes
Has STR: --- → yes
Component: Search → Find Toolbar
Ever confirmed: true
Product: Firefox → Toolkit
Regressed by: Consolas
Summary: Search becomes misaligned in long line → Find items becomes misaligned in long line

:emilio, since you are the author of the regressor, bug 1607913, could you take a look?
For more information, please visit auto_nag documentation.

Flags: needinfo?(emilio)

This is not really a regression from that bug. This happens on Linux and macOS as well and seems some sort of rounding / floating-point error.

Flags: needinfo?(emilio)
Duplicate of this bug: 1832592

Just ran into this bug myself. Here's a quick python script that will reproduce it.

Depending on how this bug works and your OS/font, you may have to adjust the number of Xs.

with open('ff-find-bug.htm', 'w') as f:
    f.write('<pre>')
    for i in range(40000): # 35k is fine on W10, by 40k it's misaligned
        f.write('x')
    f.write('word to search for, plus some more text after.')
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: