From 3c5650f8465dfe815531dd666dc8684e87c38d90 Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Fri, 6 Sep 2024 12:08:50 -0400 Subject: [PATCH] LibWebView: Add a storage tab to the Inspector to manage cookies This adds a storage tab which contains just a cookie viewer for now. In the future, storage like Local Storage and Indexed DB can be added here as well. In this patch, the cookie table is read-only. --- Base/res/ladybird/inspector.css | 3 ++ Base/res/ladybird/inspector.html | 27 ++++++++++++++++ Base/res/ladybird/inspector.js | 32 +++++++++++++++++++ .../Libraries/LibWebView/InspectorClient.cpp | 31 ++++++++++++++++++ .../Libraries/LibWebView/InspectorClient.h | 4 +++ 5 files changed, 97 insertions(+) diff --git a/Base/res/ladybird/inspector.css b/Base/res/ladybird/inspector.css index 9467970dd75..4f094302c41 100644 --- a/Base/res/ladybird/inspector.css +++ b/Base/res/ladybird/inspector.css @@ -276,6 +276,9 @@ details > :not(:first-child) { .property-table td { padding: 4px; text-align: left; + + overflow: hidden; + text-overflow: ellipsis; } #fonts { diff --git a/Base/res/ladybird/inspector.html b/Base/res/ladybird/inspector.html index 3d997cacb57..decc53c00fe 100644 --- a/Base/res/ladybird/inspector.html +++ b/Base/res/ladybird/inspector.html @@ -16,6 +16,7 @@
+
@@ -27,6 +28,32 @@
+
+
+ +
+ + +
+