Closed Bug 1673022 Opened 4 years ago Closed 4 years ago

URL Suggestion too tall when title contains characters from Mathematical Alphanumeric Unicode Range

Categories

(Core :: Layout: Text and Fonts, defect)

Firefox 83
defect

Tracking

()

RESOLVED DUPLICATE of bug 1671525

People

(Reporter: ceda_ei, Unassigned)

Details

Attachments

(2 files)

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

Steps to reproduce:

I tried the following steps on Windows and Linux. However, the bug only appears in Firefox for Linux. I am using Firefox Developer Edition v83.0.b2. The bug is reproducible in a new profile without any userChrome.

  • Create a file with the following contents
    <html><head><title>oonikee 𝐀</title></head></html>
    Notice the A here is U+1D400 from Mathematical Alphanumeric Unicode Range.

  • Next open another tab and type ooniqee (so that the previous file shows up in suggestions)

Actual results:

The suggestion entry for the previous file is much taller than others.

Expected results:

The suggestion entry should have been only as tall as other entries.

Component: Untriaged → Address Bar

Comment on attachment 9183626 [details]
Screen recording of the bug in a webpage as well as the megabar

I'm experiencing the same issue in a more recent version of Firefox, 83.0b3. It appears as if the issue affects text highlighting as well and prevents the user from highlighting specific text on the line above the one containing the character.

I believe the bug's component needs to be reassigned from Address Bar to something else, possibly general since the issue seems to exist with calculation of height of certain glyphs.

I can reproduce this on Mac, but it's not nearly as bad as the screenshots and video. I don't know enough about text layout to know whether this is intended or not, but given that it also affects highlighting and not only the urlbar, we can move the bug and see what people who work on that think. If it is intended, then we can move this bug back to Address Bar, and there may be some steps we can take to prevent it from happening in the urlbar specifically.

Status: UNCONFIRMED → NEW
Component: Address Bar → Layout: Text and Fonts
Ever confirmed: true
OS: Unspecified → All
Product: Firefox → Core
Hardware: Unspecified → All

Looks like bug 1671525, which is under active investigation as well.

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → DUPLICATE

Can you tell what the fonts in use are when you hit this bug with the inspector's "fonts" panel? I'm on Fedora but can't reproduce the huge height so there must be something about the fallback font we're using to match those glyphs.

Flags: needinfo?(ceda_ei)

For example I get DejaVuMathTeXGyre-Regular when inspecting the snippet of code on comment 0.

(In reply to Emilio Cobos Álvarez (:emilio) from comment #6)

Can you tell what the fonts in use are when you hit this bug with the inspector's "fonts" panel? I'm on Fedora but can't reproduce the huge height so there must be something about the fallback font we're using to match those glyphs.

I can't reproduce the bug in the webpage with selection. I can only reproduce it in the suggestions. Regardless, the font in the webpage is Dejavu Serif Bold.

From the browser investigator, I found out the font used in the url suggestions is LatinModernMathJax_Normal-Regular. Removing that font, it fellback to DejaVu Math TeX Gyre in which case the suggestion was of normal height.

Flags: needinfo?(ceda_ei)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: