mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 05:28:11 +00:00
Browser+LibWebView+WebDriver: Connect WebDriver to WebContent
First, this moves the WebDriver socket to the /tmp/websocket/ directory, as WebDriver now creates multiple sockets per session. Those sockets are now created with Core::LocalServer rather than manually setting up the listening sockets (this was an existing FIXME which resolved some issues I was hitting with creating a second listening socket). WebDriver passes both socket paths to Browser via command line. Browser continues to connect itself via one socket path, then forwards the other socket path to the WebContent process created by the OOPWV. WebContent then connects to WebDriver over this path. WebContent will temporarily set the navigator.webdriver flag to true after connecting to WebDriver. This will soon be moved to its own IPC to be sent by WebDriver.
This commit is contained in:
parent
6b014489d4
commit
50ae1ad18a
11 changed files with 151 additions and 35 deletions
|
@ -595,9 +595,9 @@ void OutOfProcessWebView::set_preferred_color_scheme(Web::CSS::PreferredColorSch
|
|||
client().async_set_preferred_color_scheme(color_scheme);
|
||||
}
|
||||
|
||||
void OutOfProcessWebView::set_is_webdriver_active(bool is_webdriver_enabled)
|
||||
void OutOfProcessWebView::connect_to_webdriver(String const& webdriver_ipc_path)
|
||||
{
|
||||
client().async_set_is_webdriver_active(is_webdriver_enabled);
|
||||
client().async_connect_to_webdriver(webdriver_ipc_path);
|
||||
}
|
||||
|
||||
void OutOfProcessWebView::set_window_position(Gfx::IntPoint const& position)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue