mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-23 08:00:20 +00:00
LibWeb: Don't assume response object isn't null in fetch abort algorithm
The callee that we're passing it to expects a GCPtr anyway, so there's no need to explicitly dereference this. Fixes a crash when loading https://spotify.com/
This commit is contained in:
parent
f9803a7319
commit
0d82cc8a67
Notes:
sideshowbarker
2024-07-17 09:49:33 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/0d82cc8a67 Pull-request: https://github.com/SerenityOS/serenity/pull/18959
1 changed files with 1 additions and 1 deletions
|
@ -143,7 +143,7 @@ JS::NonnullGCPtr<JS::Promise> fetch(JS::VM& vm, RequestInfo const& input, Reques
|
|||
|
||||
auto& promise_capability = *promise_capability_handle;
|
||||
auto& request_object = *request_object_handle;
|
||||
auto& response_object = *response_object_handle;
|
||||
JS::GCPtr<Response> response_object = response_object_handle.ptr();
|
||||
|
||||
// 1. Set locallyAborted to true.
|
||||
locally_aborted->set_value(true);
|
||||
|
|
Loading…
Reference in a new issue