<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>232043</bug_id>
          
          <creation_ts>2021-10-20 14:14:00 -0700</creation_ts>
          <short_desc>Regression: Safari Tab Crashing on iOS 15.0 when Japanese text is drawn onto a Canvas with -apple-system font</short_desc>
          <delta_ts>2021-10-21 02:11:57 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Canvas</component>
          <version>Other</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>Other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>230187</dup_id>
          
          <bug_file_loc>https://codepen.io/jessejorgenson/pen/abymLLX</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jesse Jorgenson">jjorgenson</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>dino</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1806826</commentid>
    <comment_count>0</comment_count>
    <who name="Jesse Jorgenson">jjorgenson</who>
    <bug_when>2021-10-20 14:14:00 -0700</bug_when>
    <thetext>Minimum Repro: https://codepen.io/jessejorgenson/full/abymLLX and https://codepen.io/jessejorgenson/pen/abymLLX

When drawing text onto a Canvas via context.fillText, Safari on iOS 15 is crashing if that text is Japanese and you use `-apple-system` in your font list. If you remove `-apple-system` or the Japanese characters, the crash stops.

Notes
* I can reproduce this in both the simulator with iOS 15.0 and physical iPad with iPadOS 15.0
* We cannot reproduce this on iOS 14 and below
* I also saw the crash when using `system-ui` in the font list</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1807054</commentid>
    <comment_count>1</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2021-10-21 02:11:57 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 230187 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>