mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:28:11 +00:00
Browser+WebContent: Add a Debug menu action to disable scripting :^)
This commit is contained in:
parent
780e5441b4
commit
04e40b7aaa
2 changed files with 12 additions and 0 deletions
|
@ -223,6 +223,10 @@ void ConnectionFromClient::debug_request(const String& request, const String& ar
|
|||
m_page_host->page().set_same_origin_policy_enabled(argument == "on");
|
||||
}
|
||||
|
||||
if (request == "scripting") {
|
||||
m_page_host->page().set_is_scripting_enabled(argument == "on");
|
||||
}
|
||||
|
||||
if (request == "dump-local-storage") {
|
||||
if (auto* doc = page().top_level_browsing_context().active_document())
|
||||
doc->window().local_storage()->dump();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue