WebDriver: Stop using the ancient Core::EventReceiver parent/child API

Before this change, clients were kept alive by making them children of
the TCPServer object. This ownership model is going away (and this was
the only remaining use of it!) so let's just put the clients in a hash
table instead.
This commit is contained in:
Andreas Kling 2025-08-10 16:34:51 +02:00 committed by Andreas Kling
commit dfe776b722
Notes: github-actions[bot] 2025-08-11 14:57:31 +00:00
5 changed files with 24 additions and 12 deletions

View file

@ -116,8 +116,10 @@ public:
// 18. Print, https://w3c.github.io/webdriver/#print
virtual Response print_page(Parameters parameters, JsonValue payload) = 0;
Function<void()> on_death;
protected:
Client(NonnullOwnPtr<Core::BufferedTCPSocket>, Core::EventReceiver* parent);
explicit Client(NonnullOwnPtr<Core::BufferedTCPSocket>);
private:
using WrappedError = Variant<AK::Error, HTTP::HttpRequest::ParseError, WebDriver::Error>;