Преглед на файлове

LibWebView: Set a title on the Inspector and Task Manager views

These will be used to display the titles in the Task Manager window.
Timothy Flynn преди 1 година
родител
ревизия
2fc52657b6
променени са 2 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 1 0
      Userland/Libraries/LibWebView/InspectorClient.cpp
  2. 1 0
      Userland/Libraries/LibWebView/ProcessManager.cpp

+ 1 - 0
Userland/Libraries/LibWebView/InspectorClient.cpp

@@ -351,6 +351,7 @@ void InspectorClient::load_inspector()
 <html>
 <html>
 <head>
 <head>
     <meta name="color-scheme" content="dark light">
     <meta name="color-scheme" content="dark light">
+    <title>Inspector</title>
     <style type="text/css">
     <style type="text/css">
 )~~~"sv);
 )~~~"sv);
 
 

+ 1 - 0
Userland/Libraries/LibWebView/ProcessManager.cpp

@@ -159,6 +159,7 @@ String ProcessManager::generate_html()
     builder.append(R"(
     builder.append(R"(
         <html>
         <html>
         <head>
         <head>
+        <title>Task Manager</title>
         <style>
         <style>
                 @media (prefers-color-scheme: dark) {
                 @media (prefers-color-scheme: dark) {
                     /* FIXME: We should be able to remove the HTML style when "color-scheme" is supported */
                     /* FIXME: We should be able to remove the HTML style when "color-scheme" is supported */