1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 03:57:44 +00:00

WebDriver: Remove the WebContent socket file when closing the session

Otherwise it is left on disk forever.
This commit is contained in:
Timothy Flynn 2022-12-15 10:40:11 -05:00 committed by Linus Groh
parent 956fa84f12
commit cbbaf8ea2c
3 changed files with 14 additions and 11 deletions

View file

@ -39,7 +39,7 @@ public:
private:
using ServerPromise = Core::Promise<ErrorOr<void>>;
ErrorOr<NonnullRefPtr<Core::LocalServer>> create_server(DeprecatedString const& socket_path, NonnullRefPtr<ServerPromise> promise);
ErrorOr<NonnullRefPtr<Core::LocalServer>> create_server(NonnullRefPtr<ServerPromise> promise);
NonnullRefPtr<Client> m_client;
Web::WebDriver::LadybirdOptions m_options;
@ -48,6 +48,7 @@ private:
unsigned m_id { 0 };
RefPtr<WebContentConnection> m_web_content_connection;
Optional<DeprecatedString> m_web_content_socket_path;
Optional<pid_t> m_browser_pid;
};