mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-03 08:52:54 +00:00
LibWeb: Remove OOM propagation from Fetch::Infrastructure::Headers
This commit is contained in:
parent
2925fcd4bc
commit
c79f46fe6f
Notes:
sideshowbarker
2024-07-17 09:47:09 +09:00
Author: https://github.com/trflynn89
Commit: c79f46fe6f
Pull-request: https://github.com/SerenityOS/serenity/pull/24124
23 changed files with 212 additions and 225 deletions
|
@ -320,7 +320,7 @@ void HTMLLinkElement::default_fetch_and_process_linked_resource()
|
|||
void HTMLLinkElement::process_stylesheet_resource(bool success, Fetch::Infrastructure::Response const& response, Variant<Empty, Fetch::Infrastructure::FetchAlgorithms::ConsumeBodyFailureTag, ByteBuffer> body_bytes)
|
||||
{
|
||||
// 1. If the resource's Content-Type metadata is not text/css, then set success to false.
|
||||
auto extracted_mime_type = response.header_list()->extract_mime_type().release_value_but_fixme_should_propagate_errors();
|
||||
auto extracted_mime_type = response.header_list()->extract_mime_type();
|
||||
if (!extracted_mime_type.has_value() || extracted_mime_type->essence() != "text/css") {
|
||||
success = false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue