mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-24 08:59:50 +00:00
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:
parent
045eaa1576
commit
dfe776b722
Notes:
github-actions[bot]
2025-08-11 14:57:31 +00:00
Author: https://github.com/awesomekling
Commit: dfe776b722
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5817
Reviewed-by: https://github.com/gmta ✅
5 changed files with 24 additions and 12 deletions
|
|
@ -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>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue