Closed Bug 611563 Opened 15 years ago Closed 15 years ago

Hang/freeze when trying to display certain Unicode private-area glyphs at large sizes (<h1> and <h2>, e.g.)

Categories

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

x86
Windows 7
defect
Not set
critical

Tracking

()

RESOLVED FIXED
Tracking Status
blocking2.0 --- final+

People

(Reporter: ejh985, Unassigned)

Details

Attachments

(2 files)

User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:2.0b6) Gecko/20100101 Firefox/4.0b6 Build Identifier: Mozilla/5.0 (Windows NT 6.1; rv:2.0b6) Gecko/20100101 Firefox/4.0b6 Firefox is hanging indefinitely when trying to display a vanilla HTML page containing the following: <font face="Linux Libertine O"><h1> &#xE021; Longwood </h1></font> (Note that you must have Linux Libertine installed for the crash/hang to occur; if a font is used that does not contain a glyph at that location, a "hex box" is displayed as expected.) So far I've reproduced this on both Firefox 4b6 and Firefox 3.6.12, with any of the glyphs from U+E000 (A "Tux" glyph in Libertine) through roughly U+E121. In Libertine section constitutes about 80 or 90 special glyphs, including the true small caps, true old-style figures, the Wikipedia 'W', and more than a dozen latin ligatures. The glyphs all render correctly at smallish sizes (including up through the default <h3>). I have not tested any other fonts for comparison, because I haven't found any others that use those code locations. Like I said above, the crash/hang does NOT occur for fonts without actual glyphs in that range, as the "hex box" seems to display fine. The problem can also be caused by zooming in on a page that uses one or more of those glyphs at a *smaller* size. That is, such a page loads/displays correctly at first, but then Firefox hangs when you zoom in past a certain point. Reproducible: Always Steps to Reproduce: 1. Install "Linux Libertine O" (OpenType), freely available at sourceforge. 2. Create the world's lamest .html file: <html> <head><title>This page won't load!</title></head> <body> <font face="Linux Libertine O"> <h1> This should be a old-style '1': &#xE021; </h1> </body> </html> 3. Open the file in Firefox. Alternately: 1. Install Libertine. 2. Create the above file, but remove the <h1> and </h1> tags. 3. Open the file in Firefox. 4. Zoom in at least 4 or 5 times. Actual Results: Firefox hangs before anything is displayed. User is forced to terminate the program. Expected Results: Firefox should display a large line of text that reads "This should be a old-style '1': 1". As I said in the Details, my ability to test the boundaries of this bug is limited by font catalog. It may be that the bug only affects the U+Exxx range of Unicode glyphs, or the entirety of the "Private Use" area; it might only affect Libertine's glyphs, or it might affect any glyphs of a certain size or complexity, or it might affect any glyph whatsoever at those positions. I have at least confirmed that other browsers and text-processing software handle the glyphs correctly (e.g. IE8 and WordPad). For those testers who might balk at having to actually install a font to test a bug: Libertine is an excellent and free font, anyway.
Here, for convenience, is a copy of the latest Libertine Regular font. If it is installed on your system, the test HTML file will cause Firefox to hang/freeze.
Status: UNCONFIRMED → NEW
blocking2.0: --- → ?
Ever confirmed: true
Wow. That was fast. Don't know how, but this seems to be fixed already in 4b7. Guess it was a duplicate bug? In any case, all the glyphs seem to be displayed properly at large sizes now.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
No longer blocks: 627300
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: