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:
Timothy Flynn 2022-12-15 08:44:10 -05:00 committed by Linus Groh
parent cc62d33a07
commit 944e17ce9e
2 changed files with 2 additions and 2 deletions

View file

@ -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)

View file

@ -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);