LibWeb: Remove unecessary dependence on Window from Fetch, XHR, FileAPI

These classes only needed Window to get at its realm. Pass a realm
directly to construct Fetch, XMLHttpRequest and FileAPI classes.
This commit is contained in:
Andrew Kaster 2022-09-25 18:08:29 -06:00 committed by Linus Groh
commit 4878a18ee7
Notes: sideshowbarker 2024-07-17 06:28:06 +09:00
17 changed files with 144 additions and 169 deletions

View file

@ -35,7 +35,7 @@ public:
Done = 4,
};
static JS::NonnullGCPtr<XMLHttpRequest> create_with_global_object(HTML::Window&);
static JS::NonnullGCPtr<XMLHttpRequest> construct_impl(JS::Realm&);
virtual ~XMLHttpRequest() override;