mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 11:07:45 +00:00
WebDriver: Fix handling of disconnected WebContent process
If WebContent process got disconnected it is only necessary to remove associated window instead of terminating the entire session.
This commit is contained in:
parent
7146c33522
commit
16a4949e33
3 changed files with 13 additions and 11 deletions
|
@ -18,13 +18,11 @@ class WebContentConnection
|
|||
: public IPC::ConnectionFromClient<WebDriverClientEndpoint, WebDriverServerEndpoint> {
|
||||
C_OBJECT_ABSTRACT(WebContentConnection)
|
||||
public:
|
||||
WebContentConnection(NonnullOwnPtr<Core::LocalSocket> socket, NonnullRefPtr<Client> client, unsigned session_id);
|
||||
WebContentConnection(NonnullOwnPtr<Core::LocalSocket> socket);
|
||||
|
||||
Function<void()> on_close;
|
||||
|
||||
virtual void die() override;
|
||||
|
||||
private:
|
||||
NonnullRefPtr<Client> m_client;
|
||||
unsigned m_session_id { 0 };
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue