1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-23 04:55:07 +00:00
serenity/Userland/Libraries/LibWeb/Fetch/Infrastructure/HTTP
Linus Groh 216f68c566 LibWeb: Register PendingResponse with a Request to keep it alive
This was an oversight from when I converted PendingResponse and various
other classes from being ref-counted to GC-allocated last minute - no
one takes care to keep all of them alive. Some are on the stack, and
some might be captured in another PendingResponse's JS::SafeFunction,
but ultimately, we need a better solution.
Since a PendingResponse is *always* the result of someone having created
a Request, let's just let that keep a list of each PendingResponse that
has been created for it, and visit them until they are resolved. After
that, they can be GC'd with no complaints.
2022-11-01 20:14:12 +00:00
..
Bodies.cpp LibWeb: Implement 'Byte sequence as body' AO 2022-10-30 20:10:29 +00:00
Bodies.h LibWeb: Implement 'Byte sequence as body' AO 2022-10-30 20:10:29 +00:00
Headers.cpp LibWeb: Partially implement 'Extract header (list) values' AOs 2022-10-30 20:10:29 +00:00
Headers.h LibWeb: Partially implement 'Extract header (list) values' AOs 2022-10-30 20:10:29 +00:00
Methods.cpp LibWeb: Move Fetch infra into the Web::Fetch::Infrastructure namespace 2022-07-19 00:27:35 +01:00
Methods.h LibWeb: Move Fetch infra into the Web::Fetch::Infrastructure namespace 2022-07-19 00:27:35 +01:00
Requests.cpp LibWeb: Register PendingResponse with a Request to keep it alive 2022-11-01 20:14:12 +00:00
Requests.h LibWeb: Register PendingResponse with a Request to keep it alive 2022-11-01 20:14:12 +00:00
Responses.cpp LibWeb: Implement most of the 'Fetching' AOs 2022-10-30 20:10:29 +00:00
Responses.h LibWeb: Require error message for Response::network_error() 2022-10-30 20:10:29 +00:00
Statuses.cpp LibWeb: Move Fetch infra into the Web::Fetch::Infrastructure namespace 2022-07-19 00:27:35 +01:00
Statuses.h LibWeb: Move Fetch infra into the Web::Fetch::Infrastructure namespace 2022-07-19 00:27:35 +01:00