mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 22:07:36 +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:
parent
7021d30288
commit
4031630b49
8 changed files with 38 additions and 13 deletions
|
@ -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 };
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue