1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-21 20:15:07 +00:00
serenity/Userland/Libraries/LibWeb/Fetch/Fetching
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
..
Checks.cpp
Checks.h
Fetching.cpp LibWeb: Register PendingResponse with a Request to keep it alive 2022-11-01 20:14:12 +00:00
Fetching.h LibWeb: Implement most of the 'Fetching' AOs 2022-10-30 20:10:29 +00:00
PendingResponse.cpp LibWeb: Register PendingResponse with a Request to keep it alive 2022-11-01 20:14:12 +00:00
PendingResponse.h LibWeb: Register PendingResponse with a Request to keep it alive 2022-11-01 20:14:12 +00:00
RefCountedFlag.cpp LibWeb: Implement most of the 'Fetching' AOs 2022-10-30 20:10:29 +00:00
RefCountedFlag.h LibWeb: Implement most of the 'Fetching' AOs 2022-10-30 20:10:29 +00:00