mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-30 00:31:14 +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:
parent
541bf17a4a
commit
dfdb31f5b0
Notes:
sideshowbarker
2024-07-17 05:41:34 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/dfdb31f5b0 Pull-request: https://github.com/SerenityOS/serenity/pull/19839 Reviewed-by: https://github.com/AtkinsSJ
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue