mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-22 17:31:58 -05:00
WebContent: Disallow creating WebDriverConnections with existing sockets
This reverts commit d2b2d3ad80
.
This is no longer needed once Ladybird will uses local socket files.
This commit is contained in:
parent
cc62d33a07
commit
944e17ce9e
2 changed files with 2 additions and 2 deletions
|
@ -257,7 +257,7 @@ ErrorOr<NonnullRefPtr<WebDriverConnection>> WebDriverConnection::connect(Web::Pa
|
|||
auto socket = TRY(Core::Stream::LocalSocket::connect(webdriver_ipc_path));
|
||||
|
||||
dbgln_if(WEBDRIVER_DEBUG, "Connected to WebDriver");
|
||||
return try_create(move(socket), page_client);
|
||||
return adopt_nonnull_ref_or_enomem(new (nothrow) WebDriverConnection(move(socket), page_client));
|
||||
}
|
||||
|
||||
WebDriverConnection::WebDriverConnection(NonnullOwnPtr<Core::Stream::LocalSocket> socket, Web::PageClient& page_client)
|
||||
|
|
|
@ -26,7 +26,7 @@ namespace WebContent {
|
|||
|
||||
class WebDriverConnection final
|
||||
: public IPC::ConnectionToServer<WebDriverClientEndpoint, WebDriverServerEndpoint> {
|
||||
C_OBJECT(WebDriverConnection)
|
||||
C_OBJECT_ABSTRACT(WebDriverConnection)
|
||||
|
||||
public:
|
||||
static ErrorOr<NonnullRefPtr<WebDriverConnection>> connect(Web::PageClient& page_client, DeprecatedString const& webdriver_ipc_path);
|
||||
|
|
Loading…
Reference in a new issue