mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 19:17:44 +00:00
LibWeb: Add 'should block pop ups' user config to Page
This will also be used by the window.open algorithm steps.
This commit is contained in:
parent
ff2f31bc81
commit
798d7c6fae
3 changed files with 17 additions and 0 deletions
|
@ -71,6 +71,9 @@ public:
|
|||
bool is_scripting_enabled() const { return m_is_scripting_enabled; }
|
||||
void set_is_scripting_enabled(bool b) { m_is_scripting_enabled = b; }
|
||||
|
||||
bool should_block_pop_ups() const { return m_should_block_pop_ups; }
|
||||
void set_should_block_pop_ups(bool b) { m_should_block_pop_ups = b; }
|
||||
|
||||
bool is_webdriver_active() const { return m_is_webdriver_active; }
|
||||
void set_is_webdriver_active(bool b) { m_is_webdriver_active = b; }
|
||||
|
||||
|
@ -91,6 +94,8 @@ private:
|
|||
|
||||
bool m_is_scripting_enabled { true };
|
||||
|
||||
bool m_should_block_pop_ups { true };
|
||||
|
||||
// https://w3c.github.io/webdriver/#dfn-webdriver-active-flag
|
||||
// The webdriver-active flag is set to true when the user agent is under remote control. It is initially false.
|
||||
bool m_is_webdriver_active { false };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue