Files
ladybird/Libraries/LibWeb/CSS/FontFace.cpp
Andreas Kling 2e6e597c94 LibWeb: Skip font sources with unsupported formats early
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.
2026-03-23 09:03:57 +01:00

36 KiB