1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:38:11 +00:00
serenity/Userland/Libraries/LibWeb/Fetch
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
..
Fetching LibWeb: Register PendingResponse with a Request to keep it alive 2022-11-01 20:14:12 +00:00
Infrastructure LibWeb: Register PendingResponse with a Request to keep it alive 2022-11-01 20:14:12 +00:00
Body.cpp LibJS: Make PromiseCapability GC-allocated 2022-10-02 23:02:27 +01:00
Body.h LibWeb: Implement '5.3. Body mixin' from the Fetch API :^) 2022-09-27 14:56:17 +01:00
Body.idl LibWeb: Implement '5.3. Body mixin' from the Fetch API :^) 2022-09-27 14:56:17 +01:00
BodyInit.cpp LibWeb: Implement 'Safely extract BodyInit' AO 2022-10-30 20:10:29 +00:00
BodyInit.h LibWeb: Implement 'Safely extract BodyInit' AO 2022-10-30 20:10:29 +00:00
BodyInit.idl LibWeb: Remove workaround for nested BodyInit IDL union type 2022-10-21 12:11:24 +02:00
Enums.cpp LibWeb: Implement '5.5. Response class' from the Fetch API :^) 2022-09-27 14:56:17 +01:00
Enums.h LibWeb: Implement '5.5. Response class' from the Fetch API :^) 2022-09-27 14:56:17 +01:00
FetchMethod.cpp LibWeb: Implement the fetch() method :^) 2022-10-30 20:10:29 +00:00
FetchMethod.h LibWeb: Implement the fetch() method :^) 2022-10-30 20:10:29 +00:00
Headers.cpp LibWeb: Make Fetch::Infrastructure::{Request,Response,HeaderList} GC'd 2022-10-30 11:30:23 +00:00
Headers.h LibWeb: Make Fetch::Infrastructure::{Request,Response,HeaderList} GC'd 2022-10-30 11:30:23 +00:00
Headers.idl LibWeb: Implement '5.1. Headers class' from the Fetch API :^) 2022-07-19 00:27:35 +01:00
HeadersIterator.cpp LibWeb: Remove unecessary dependence on Window from Fetch, XHR, FileAPI 2022-10-01 21:05:32 +01:00
HeadersIterator.h LibWeb: Remove WRAPPER_HACK() macro 2022-09-21 21:12:24 +01:00
Request.cpp LibWeb: Handle currently ignored WebIDL::ExceptionOr<T>s 2022-10-31 14:12:44 +00:00
Request.h LibWeb: Make Fetch::Infrastructure::{Request,Response,HeaderList} GC'd 2022-10-30 11:30:23 +00:00
Request.idl LibWeb/Fetch: Add duplex property to Request 2022-10-15 12:15:31 +02:00
Response.cpp LibWeb: Handle currently ignored WebIDL::ExceptionOr<T>s 2022-10-31 14:12:44 +00:00
Response.h LibWeb: Make Fetch::Infrastructure::{Request,Response,HeaderList} GC'd 2022-10-30 11:30:23 +00:00
Response.idl LibWeb: Implement '5.5. Response class' from the Fetch API :^) 2022-09-27 14:56:17 +01:00