1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 12:57:34 +00:00

Ladybird: Construct a WebDriverConnection when instructed to do so

The WebDriver will pass the --webdriver-fd-passing-socket command line
option when it launches Ladybird. Forward this flag onto the WebContent
process, where it will create the WebDriverConnection for IPC.
This commit is contained in:
Timothy Flynn 2022-11-14 11:08:44 -05:00 committed by Andrew Kaster
parent 7021d30288
commit 4031630b49
8 changed files with 38 additions and 13 deletions

View file

@ -22,7 +22,7 @@ class WebContentView;
class BrowserWindow : public QMainWindow {
Q_OBJECT
public:
explicit BrowserWindow();
explicit BrowserWindow(int webdriver_fd_passing_socket);
WebContentView& view() const { return m_current_tab->view(); }
@ -48,4 +48,6 @@ private:
Tab* m_current_tab { nullptr };
Browser::CookieJar m_cookie_jar;
int m_webdriver_fd_passing_socket { -1 };
};