mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 15:45:25 +00:00
LibWeb: Accept MIME types starting with "application/font" for CSS fonts
Although "application/font-woff" is apparently "deprecated", it's very much still in use on the web, so we should not be rejecting it.
This commit is contained in:
@@ -2340,6 +2340,8 @@ Optional<AK::URL> Parser::parse_url_function(ComponentValue const& component_val
|
||||
case AllowedDataUrlType::Font:
|
||||
if (data_url.data_mime_type().starts_with("font"sv, CaseSensitivity::CaseInsensitive))
|
||||
return data_url;
|
||||
if (data_url.data_mime_type().starts_with("application/font"sv, CaseSensitivity::CaseInsensitive))
|
||||
return data_url;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user