mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-31 07:22:50 +00:00
LibWeb: Make Fetch::Infrastructure::Body
be GC allocated
Making the body GC-allocated allows us to avoid using `JS::Handle` for `m_stream` in its members.
This commit is contained in:
parent
953c19bdb7
commit
bdd3a16b16
Notes:
sideshowbarker
2024-07-17 20:19:08 +09:00
Author: https://github.com/kalenikaliaksandr
Commit: bdd3a16b16
Pull-request: https://github.com/SerenityOS/serenity/pull/20645
Reviewed-by: https://github.com/awesomekling
21 changed files with 117 additions and 91 deletions
|
@ -189,7 +189,7 @@ WebIDL::ExceptionOr<void> HTMLVideoElement::determine_element_poster_frame(Optio
|
|||
m_poster_frame = move(image.release_value().frames[0].bitmap);
|
||||
};
|
||||
|
||||
VERIFY(response->body().has_value());
|
||||
VERIFY(response->body());
|
||||
auto empty_algorithm = [](auto) {};
|
||||
|
||||
response->body()->fully_read(realm, move(on_image_data_read), move(empty_algorithm), JS::NonnullGCPtr { global }).release_value_but_fixme_should_propagate_errors();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue