Closed Bug 1492220 Opened 7 years ago Closed 7 years ago

Tab crashes when visiting v-fonts

Categories

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

Unspecified
macOS
defect

Tracking

()

VERIFIED FIXED
mozilla64
Tracking Status
firefox-esr60 --- unaffected
firefox62 --- unaffected
firefox63 --- unaffected
firefox64 --- verified

People

(Reporter: mbalfanz, Assigned: jfkthame)

References

(Blocks 1 open bug)

Details

(Keywords: regression)

Attachments

(2 files)

Visiting v-fonts.com with the latest Nightly on OS X 10.13.6 crashes the tab. Here is my crash report: https://crash-stats.mozilla.com/report/index/e9306b6b-01c1-4415-93f0-0c7fd0180918 Not sure if it's related, but axis names of variable fonts started to render with a special character in the devtools (see screenshot).
Ugh, this may well be a regression from bug 1490402 or one of the other recent changes to how we handle font-related names. Will try to investigate...
I also hit a crash on this site a while back and filed bug 1491030, but I did get a different signature.
Yep, definitely a regression from bug 1490402, mixing utf-16 and utf-8 strings incorrectly. In most cases the compiler would have flagged such a mismatch, but the explicit cast here (because the macOS APIs use their own UniChar type) defeated that and meant this one slipped through.
Attachment #9010037 - Flags: review?(lsalzman)
Assignee: nobody → jfkthame
Status: NEW → ASSIGNED
Blocks: 1490402
Keywords: regression
OS: Unspecified → Mac OS X
Priority: -- → P1
Attachment #9010037 - Flags: review?(lsalzman) → review+
Pushed by jkew@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/2db71467a0b8 Fix encoding-form mismatch in macOS impl of GetVariationAxes. r=lsalzman
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
Flags: qe-verify+
Reproduced the crashes on MacOS 10.13.6 and MacOs 10.14 using Nightly build from 2018-09-18. Verified as fixed on MacOS 10.13, macOS 10.14, macOS 10.11 with 64.0b4 build.
Status: RESOLVED → VERIFIED
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: