mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 01:29:17 +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
Notes:
sideshowbarker
2024-07-17 02:39:24 +09:00
Author: https://github.com/trflynn89
Commit: 4031630b49
Pull-request: https://github.com/SerenityOS/serenity/pull/16583
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/awesomekling ✅
Reviewed-by: https://github.com/linusg
8 changed files with 38 additions and 13 deletions
|
@ -21,7 +21,8 @@
|
|||
extern String s_serenity_resource_root;
|
||||
extern Browser::Settings* s_settings;
|
||||
|
||||
BrowserWindow::BrowserWindow()
|
||||
BrowserWindow::BrowserWindow(int webdriver_fd_passing_socket)
|
||||
: m_webdriver_fd_passing_socket(webdriver_fd_passing_socket)
|
||||
{
|
||||
m_tabs_container = new QTabWidget(this);
|
||||
m_tabs_container->setElideMode(Qt::TextElideMode::ElideRight);
|
||||
|
@ -282,7 +283,7 @@ void BrowserWindow::debug_request(String const& request, String const& argument)
|
|||
|
||||
void BrowserWindow::new_tab()
|
||||
{
|
||||
auto tab = make<Tab>(this);
|
||||
auto tab = make<Tab>(this, m_webdriver_fd_passing_socket);
|
||||
auto tab_ptr = tab.ptr();
|
||||
m_tabs.append(std::move(tab));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue