Bug 231686 - Browser crashes when drawing Japanese text on a canvas with some fonts
Summary: Browser crashes when drawing Japanese text on a canvas with some fonts
Status: RESOLVED DUPLICATE of bug 230187
Alias: None
Product: WebKit
Classification: Unclassified
Component: Canvas (show other bugs)
Version: Safari 15
Hardware: iPhone / iPad Other
: P2 Major
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-10-13 10:55 PDT by Mouad Debbar
Modified: 2021-10-14 23:05 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***