mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-06 08:10:02 +00:00
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:
parent
00aa72c16e
commit
c361ea8916
Notes:
github-actions[bot]
2025-03-10 12:31:30 +00:00
Author: https://github.com/rmg-x
Commit: c361ea8916
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3844
Reviewed-by: https://github.com/AtkinsSJ ✅
5 changed files with 24 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue