diff options
author | Mathis Wiehl <mail@mathiswiehl.de> | 2023-03-18 12:44:45 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-03-18 13:47:51 +0100 |
commit | f7d2392b6c29a5491a5db0d9023a4d01c6704da4 (patch) | |
tree | 8ad613345f4ae3cf55d5b1500b5dba4a48b1d30c /Userland | |
parent | 3a45bba4e0317ceca65b7e693f3e9ddc6b7fea5a (diff) | |
download | serenity-f7d2392b6c29a5491a5db0d9023a4d01c6704da4.zip |
LibWeb: Consider deprecated application/font-woff mime type
Though deprecated by IANA, `application/font-woff` is still in active
use as a MIME type for WOFF fonts by web servers throughout the wild
web.
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Libraries/LibWeb/CSS/StyleComputer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/StyleComputer.cpp b/Userland/Libraries/LibWeb/CSS/StyleComputer.cpp index e974f23f3a..2f02bcaaba 100644 --- a/Userland/Libraries/LibWeb/CSS/StyleComputer.cpp +++ b/Userland/Libraries/LibWeb/CSS/StyleComputer.cpp @@ -102,7 +102,7 @@ private: auto mime_type = resource()->mime_type(); if (mime_type == "font/ttf"sv || mime_type == "application/x-font-ttf"sv) return TRY(OpenType::Font::try_load_from_externally_owned_memory(resource()->encoded_data())); - if (mime_type == "font/woff"sv) + if (mime_type == "font/woff"sv || mime_type == "application/font-woff"sv) return TRY(WOFF::Font::try_load_from_externally_owned_memory(resource()->encoded_data())); auto ttf = OpenType::Font::try_load_from_externally_owned_memory(resource()->encoded_data()); if (!ttf.is_error()) |