WebContent: Set the WebDriver active flag directly on the Page

One less thing for headless-browser to need to implement.
This commit is contained in:
Timothy Flynn 2022-11-21 15:23:49 -05:00 committed by Linus Groh
parent c917a59abe
commit d1c6b85dcf
Notes: sideshowbarker 2024-07-17 04:11:09 +09:00
3 changed files with 1 additions and 7 deletions

View file

@ -79,11 +79,6 @@ void PageHost::set_is_scripting_enabled(bool is_scripting_enabled)
page().set_is_scripting_enabled(is_scripting_enabled);
}
void PageHost::set_is_webdriver_active(bool is_webdriver_active)
{
page().set_is_webdriver_active(is_webdriver_active);
}
void PageHost::set_window_position(Gfx::IntPoint const& position)
{
page().set_window_position(position);

View file

@ -35,7 +35,6 @@ public:
void set_should_show_line_box_borders(bool b) { m_should_show_line_box_borders = b; }
void set_has_focus(bool);
void set_is_scripting_enabled(bool);
void set_is_webdriver_active(bool);
void set_window_position(Gfx::IntPoint const&);
void set_window_size(Gfx::IntSize const&);

View file

@ -297,7 +297,7 @@ void WebDriverConnection::set_strict_file_interactability(bool strict_file_inter
void WebDriverConnection::set_is_webdriver_active(bool is_webdriver_active)
{
m_page_host.set_is_webdriver_active(is_webdriver_active);
m_page_host.page().set_is_webdriver_active(is_webdriver_active);
}
// 9.1 Get Timeouts, https://w3c.github.io/webdriver/#dfn-get-timeouts