LibWeb+LibWebView+WebContent: Add an about:processes page

The intent is that this will replace the separate Task Manager window.
This will allow us to more easily add features such as actual process
management, better rendering of the process table, etc. Included in this
page is the ability to sort table rows.

This also lays the ground work for more internal `about` pages, such as
about:config.
This commit is contained in:
Timothy Flynn 2025-03-16 10:49:28 -04:00 committed by Tim Flynn
parent 9dcbf5562a
commit 843209c6a9
Notes: github-actions[bot] 2025-03-19 14:04:39 +00:00
21 changed files with 322 additions and 3 deletions

View file

@ -690,6 +690,12 @@ Messages::WebContentClient::RequestWorkerAgentResponse WebContentClient::request
return IPC::File {};
}
void WebContentClient::update_process_statistics(u64 page_id)
{
if (auto view = view_for_page_id(page_id); view.has_value())
WebView::Application::the().send_updated_process_statistics_to_view(*view);
}
Optional<ViewImplementation&> WebContentClient::view_for_page_id(u64 page_id, SourceLocation location)
{
// Don't bother logging anything for the spare WebContent process. It will only receive a load notification for about:blank.