[Webkit-unassigned] [Bug 224426] New: Make FontFace parsing worker-safe
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Apr 12 02:53:16 PDT 2021
https://bugs.webkit.org/show_bug.cgi?id=224426
Bug ID: 224426
Summary: Make FontFace parsing worker-safe
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: WebCore Misc.
Assignee: webkit-unassigned at lists.webkit.org
Reporter: clord at igalia.com
Blocks: 224178
WorkerGlobalScope is a FontProvider and thus needs to provide a FontFace. Using FontFace in OffscreenCanvas in a Worker is tracked in bug 224178. Currently, FontFace uses parseString, but this ends up using CSSValuePool::singleton and possibly other things that aren't safe for use in a Worker.
Much like canvas/OffscreenCanvas now use CSSParser::parseFontWorkerSafe, we need safe parsers for the other font properties (which are all subsets of parseFont I believe, so this ought to be a relatively simple patch at least on the CSSParser-side) and for FontFace and CSSFontFace to use them. As a bonus, this also ought to be a (very) minor performance improvement.
Referenced Bugs:
https://bugs.webkit.org/show_bug.cgi?id=224178
[Bug 224178] Implement FontFace in Workers for OffscreenCanvas
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210412/aecbc3f9/attachment-0001.htm>
More information about the webkit-unassigned
mailing list