From 947136ca8d6dc860f4476e4f240d2d262d115877 Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Sat, 23 Dec 2023 15:44:04 -0500 Subject: [PATCH] LibWebView: Load the Inspector CSS and JS resource files with LibWeb --- Userland/Libraries/LibWebView/InspectorClient.cpp | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/Userland/Libraries/LibWebView/InspectorClient.cpp b/Userland/Libraries/LibWebView/InspectorClient.cpp index 5c4918a5562176..d58edef0a355ed 100644 --- a/Userland/Libraries/LibWebView/InspectorClient.cpp +++ b/Userland/Libraries/LibWebView/InspectorClient.cpp @@ -8,7 +8,6 @@ #include #include #include -#include #include #include #include @@ -340,10 +339,6 @@ void InspectorClient::load_inspector() { StringBuilder builder; - // FIXME: Teach LibWeb how to load resource:// URIs instead of needing to read these files here. - auto inspector_css = MUST(Core::Resource::load_from_uri("resource://ladybird/inspector.css"sv)); - auto inspector_js = MUST(Core::Resource::load_from_uri("resource://ladybird/inspector.js"sv)); - builder.append(R"~~~( @@ -353,10 +348,10 @@ void InspectorClient::load_inspector() )~~~"sv); builder.append(HTML_HIGHLIGHTER_STYLE); - builder.append(inspector_css->data()); builder.append(R"~~~( +
@@ -424,13 +419,7 @@ void InspectorClient::load_inspector()
- + )~~~"sv);