mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
WebDriver: Pass capability-related options along to new windows
This commit is contained in:
parent
d66b54fec5
commit
7f4d2ef0d6
Notes:
github-actions[bot]
2024-11-05 19:07:10 +00:00
Author: https://github.com/trflynn89 Commit: https://github.com/LadybirdBrowser/ladybird/commit/7f4d2ef0d6f Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2176 Reviewed-by: https://github.com/ADKaster ✅
1 changed files with 7 additions and 0 deletions
|
@ -142,6 +142,13 @@ ErrorOr<NonnullRefPtr<Core::LocalServer>> Session::create_server(NonnullRefPtr<S
|
|||
if (m_windows.is_empty())
|
||||
m_client->close_session(session_id());
|
||||
};
|
||||
|
||||
web_content_connection->async_set_page_load_strategy(m_page_load_strategy);
|
||||
web_content_connection->async_set_strict_file_interactability(m_strict_file_interactiblity);
|
||||
web_content_connection->async_set_unhandled_prompt_behavior(m_unhandled_prompt_behavior);
|
||||
if (m_timeouts_configuration.has_value())
|
||||
web_content_connection->async_set_timeouts(*m_timeouts_configuration);
|
||||
|
||||
m_windows.set(window_handle, Session::Window { window_handle, move(web_content_connection) });
|
||||
|
||||
if (m_current_window_handle.is_empty())
|
||||
|
|
Loading…
Reference in a new issue