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:
parent
c917a59abe
commit
d1c6b85dcf
Notes:
sideshowbarker
2024-07-17 04:11:09 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/d1c6b85dcf Pull-request: https://github.com/SerenityOS/serenity/pull/16145 Reviewed-by: https://github.com/linusg
3 changed files with 1 additions and 7 deletions
|
@ -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);
|
||||
|
|
|
@ -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&);
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue