Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 3afc1f7690c9eeee0a3dfb1e41297f46e6ac94d2
https://github.com/WebKit/WebKit/commit/3afc1f7690c9eeee0a3dfb1e41297f46e6ac94d2
Author: Vitor Roriz <[email protected]>
Date: 2026-04-13 (Mon, 13 Apr 2026)
Changed paths:
M
LayoutTests/imported/w3c/web-platform-tests/css/css-font-loading/fontface-invalid-arraybuffer-expected.txt
M Source/WebCore/css/FontFace.cpp
M Source/WebCore/css/FontFace.h
Log Message:
-----------
FontFace: Reject with SyntaxError when immediate buffer source fails to parse
https://bugs.webkit.org/show_bug.cgi?id=312167
rdar://174669738
Reviewed by Brent Fulgham.
Per the CSS Font Loading spec §2.1, when a FontFace is constructed
from a BufferSource and the data fails to parse as a font, the loaded
promise should reject with SyntaxError. NetworkError is reserved for
URL-based fetch failures (§2.2).
https://drafts.csswg.org/css-font-loading/#font-face-constructor
*
LayoutTests/imported/w3c/web-platform-tests/css/css-font-loading/fontface-invalid-arraybuffer-expected.txt:
* Source/WebCore/css/FontFace.cpp:
(WebCore::FontFace::create):
(WebCore::FontFace::fontStateChanged):
* Source/WebCore/css/FontFace.h:
Canonical link: https://commits.webkit.org/311146@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications