LibWebView: Display each tab's title in the Task Manager

This allows us to more easily differentiate between WebContent processes
in the Task Manager at a glance.
This commit is contained in:
Timothy Flynn 2024-04-22 14:11:46 -04:00 committed by Andrew Kaster
commit 2851c05dee
Notes: sideshowbarker 2024-07-17 01:12:07 +09:00
4 changed files with 15 additions and 1 deletions

View file

@ -197,7 +197,7 @@ String ProcessManager::generate_html()
<table>
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>PID</th>
<th>Memory Usage</th>
<th>CPU %</th>
@ -210,6 +210,8 @@ String ProcessManager::generate_html()
builder.append("<tr>"sv);
builder.append("<td>"sv);
builder.append(WebView::process_name_from_type(process.type));
if (process.title.has_value())
builder.appendff(" - {}", *process.title);
builder.append("</td>"sv);
builder.append("<td>"sv);
builder.append(MUST(String::number(process.pid)));