mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
Filter out unsupported @font-face sources (e.g. .eot files, or sources with an explicit unsupported format() hint) when populating the FontFace's URL list, rather than fetching and attempting to decode them. This matches the behavior of Blink and WebKit, which both reject .eot URLs by filename when no format() hint is present, to avoid conflicts with old WinIE-style @font-face rules. Previously, we would fetch .eot files over the network, fail to decode them, and then reject the font load promise, leading to a flood of "NetworkError: Failed to load font" messages in the console.
36 KiB
36 KiB