Bug 231686

Summary: Browser crashes when drawing Japanese text on a canvas with some fonts
Product: WebKit Reporter: Mouad Debbar <mouad.debbar>
Component: CanvasAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Major CC: dino, mmaxfield, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: InRadar
Version: Safari 15   
Hardware: iPhone / iPad   
OS: Other   

Description Mouad Debbar 2021-10-13 10:55:55 PDT
## TL;DR

Repro: https://jsfiddle.net/9w2u1z7k/9/show

Simply load the repro link above on an iPhone iOS 15 Safari. The browser will crash.

Older versions of iOS work fine, so this is a regression in iOS 15.


## Details

When drawing Japanese or Chinese text on a canvas (e.g. "こんにちは世界" or "測試") with a font chain that includes "-apple-system", the browser crashes.

The problem disappears if the text is in English (e.g. "Hello World").
The problem also disappears if "-apple-system" is removed from the font family chain.
Comment 1 Radar WebKit Bug Importer 2021-10-13 13:28:49 PDT
<rdar://problem/84213820>
Comment 2 Alexey Proskuryakov 2021-10-14 16:45:47 PDT
Duplicate of bug 230187?
Comment 3 Wenson Hsieh 2021-10-14 18:02:26 PDT
(In reply to Alexey Proskuryakov from comment #2)
> Duplicate of bug 230187?

I've confirmed that it does not reproduce for me on a build of macOS that contains that fix.

I think it's safe to assume that it's a dupe of #230187.
Comment 4 Myles C. Maxfield 2021-10-14 23:05:49 PDT

*** This bug has been marked as a duplicate of bug 230187 ***