mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:57:35 +00:00
LibWeb+WebContent: Add plumbing for 'webdriver-active flag'
This commit is contained in:
parent
4c6f830a35
commit
3f24a444f9
8 changed files with 31 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
/*
|
||||
* Copyright (c) 2020-2021, Andreas Kling <kling@serenityos.org>
|
||||
* Copyright (c) 2021-2022, Linus Groh <linusg@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
@ -70,6 +71,11 @@ 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);
|
||||
}
|
||||
|
||||
Web::Layout::InitialContainingBlock* PageHost::layout_root()
|
||||
{
|
||||
auto* document = page().top_level_browsing_context().active_document();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue