diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2022-11-15 02:01:13 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-11-15 21:48:19 +0000 |
commit | 798d7c6fae3396b79f24bb98da4d959509b48102 (patch) | |
tree | 576bd21e343461c2f28d95917883a6d0afd39c8c /Userland/Services/WebContent/ConnectionFromClient.cpp | |
parent | ff2f31bc81df4505209be7fdb46d770b6f6e2098 (diff) | |
download | serenity-798d7c6fae3396b79f24bb98da4d959509b48102.zip |
LibWeb: Add 'should block pop ups' user config to Page
This will also be used by the window.open algorithm steps.
Diffstat (limited to 'Userland/Services/WebContent/ConnectionFromClient.cpp')
-rw-r--r-- | Userland/Services/WebContent/ConnectionFromClient.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Userland/Services/WebContent/ConnectionFromClient.cpp b/Userland/Services/WebContent/ConnectionFromClient.cpp index 50b376dbd8..5d31679859 100644 --- a/Userland/Services/WebContent/ConnectionFromClient.cpp +++ b/Userland/Services/WebContent/ConnectionFromClient.cpp @@ -248,6 +248,10 @@ void ConnectionFromClient::debug_request(String const& request, String const& ar m_page_host->page().set_is_scripting_enabled(argument == "on"); } + if (request == "block-pop-ups") { + m_page_host->page().set_should_block_pop_ups(argument == "on"); + } + if (request == "dump-local-storage") { if (auto* doc = page().top_level_browsing_context().active_document()) doc->window().local_storage()->dump(); |