WebContent+UI/Qt: Add debug option to toggle content filtering on/off

This was needed by @piruzzolo on Discord for debugging purposes and
seems pretty useful :^)
This commit is contained in:
rmg-x 2025-03-06 17:54:40 -06:00 committed by Tim Ledbetter
commit c361ea8916
Notes: github-actions[bot] 2025-03-10 12:31:30 +00:00
5 changed files with 24 additions and 0 deletions

View file

@ -415,6 +415,11 @@ void ConnectionFromClient::debug_request(u64 page_id, ByteString request, ByteSt
Web::ResourceLoader::the().set_navigator_compatibility_mode(compatibility_mode);
return;
}
if (request == "content-filtering") {
Web::ContentFilter::the().set_filtering_enabled(argument == "on");
return;
}
}
void ConnectionFromClient::get_source(u64 page_id)