Skip to content

Commit

Permalink
WebContent: Disallow creating WebDriverConnections with existing sockets
Browse files Browse the repository at this point in the history
This reverts commit d2b2d3a.

This is no longer needed once Ladybird will uses local socket files.
  • Loading branch information
trflynn89 authored and linusg committed Dec 15, 2022
1 parent cc62d33 commit 944e17c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Userland/Services/WebContent/WebDriverConnection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion Userland/Services/WebContent/WebDriverConnection.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 944e17c

Please sign in to comment.