Bug 229633

Summary: [Cocoa] Drawing system fallback fonts to canvas causes a crash
Product: WebKit Reporter: Myles C. Maxfield <mmaxfield>
Component: New BugsAssignee: Myles C. Maxfield <mmaxfield>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=230187
Attachments:
Description Flags
Patch
none
Patch
none
Patch
wenson_hsieh: review+
Patch for committing none

Description Myles C. Maxfield 2021-08-27 15:32:56 PDT
[Cocoa] Drawing system fallback fonts to canvas causes a crash
Comment 1 Myles C. Maxfield 2021-08-27 15:34:29 PDT
Created attachment 436683 [details]
Patch
Comment 2 Myles C. Maxfield 2021-08-27 15:35:00 PDT
<rdar://problem/81889036>
Comment 3 Myles C. Maxfield 2021-08-27 15:35:17 PDT
Created attachment 436684 [details]
Patch
Comment 4 Wenson Hsieh 2021-08-27 15:40:03 PDT
Comment on attachment 436683 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=436683&action=review

r=mews!

> LayoutTests/fast/text/system-fallback-canvas.html:1
> +<!DOCTYPE html>

Might be nice to have a ref-mismatch test to ensure that at least something was drawn to the canvas.
Comment 5 Myles C. Maxfield 2021-08-27 15:41:30 PDT
Created attachment 436685 [details]
Patch
Comment 6 Wenson Hsieh 2021-08-27 15:54:15 PDT
Comment on attachment 436685 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=436685&action=review

> LayoutTests/fast/text/draw-synthetic-system-bold-font-into-canvas-expected-mismatch.html:4
> +<script src="../../resources/js-test.js"></script>

This should probably be removed.
Comment 7 Myles C. Maxfield 2021-08-27 15:56:47 PDT
Created attachment 436687 [details]
Patch for committing
Comment 8 EWS 2021-08-31 00:18:22 PDT
Committed r281792 (241129@main): <https://commits.webkit.org/241129@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 436687 [details].