mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
LibWeb: Allow loading style sheets without a MIME type
Some websites do not specify the MIME type of style sheets, instead using as= or just leaving it empty. Both Chromium and Firefox do load them regardless, so let's do it too.
This commit is contained in:
parent
9208a54b0b
commit
040ccc3b42
|
|
@ -426,7 +426,7 @@ void HTMLLinkElement::process_stylesheet_resource(bool success, Fetch::Infrastru
|
|||
mime_type_string = extracted_mime_type->essence();
|
||||
}
|
||||
|
||||
if (mime_type_string != "text/css"sv) {
|
||||
if (mime_type_string.has_value() && mime_type_string != "text/css"sv) {
|
||||
success = false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user