1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 20:28:11 +00:00

Ladybird/WebDriver: Move to using local socket files for WebDriver IPC

This allows us to use standard Serenity IPC infrastructure rather than
manually creating FD-passing sockets. This also lets us use Serenity's
WebDriver Session class, removing the copy previously used in Ladybird.
This ensures any changes to Session in the future will be picked up by
Ladybird for free.
This commit is contained in:
Timothy Flynn 2022-12-15 09:18:52 -05:00 committed by Andrew Kaster
parent ea26e45594
commit e5192073d9
12 changed files with 95 additions and 231 deletions

View file

@ -48,7 +48,7 @@ class WebContentView final
, public WebView::ViewImplementation {
Q_OBJECT
public:
explicit WebContentView(int webdriver_fd_passing_socket);
explicit WebContentView(StringView webdriver_content_ipc_path);
virtual ~WebContentView() override;
void load(AK::URL const&);
@ -219,5 +219,5 @@ private:
RefPtr<Gfx::Bitmap> m_backup_bitmap;
int m_webdriver_fd_passing_socket { -1 };
StringView m_webdriver_content_ipc_path;
};