1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:57:43 +00:00

LibWeb: Make Fetch::Infrastructure::{Request,Response,HeaderList} GC'd

This is the way.

On a more serious note, there's no reason to keep adding ref-counted
classes to LibWeb now that the majority of classes is GC'd - it only
adds the risk of discovering some cycle down the line, and forces us to
use handles as we can't visit().
This commit is contained in:
Linus Groh 2022-10-30 01:52:07 +00:00
parent 63122d0276
commit b1968b8bed
19 changed files with 270 additions and 169 deletions

View file

@ -23,10 +23,10 @@ struct NavigationParams {
String id;
// null or a request that started the navigation
RefPtr<Fetch::Infrastructure::Request> request;
JS::GCPtr<Fetch::Infrastructure::Request> request;
// a response that ultimately was navigated to (potentially a network error)
NonnullRefPtr<Fetch::Infrastructure::Response> response;
JS::NonnullGCPtr<Fetch::Infrastructure::Response> response;
// an origin to use for the new Document
Origin origin;