mirror of
https://github.com/RGBCube/serenity
synced 2025-05-19 00:25:07 +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
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…
Add table
Add a link
Reference in a new issue