summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb
diff options
context:
space:
mode:
authorValtteri Koskivuori <vkoskiv@gmail.com>2022-04-02 00:14:04 +0300
committerLinus Groh <mail@linusgroh.de>2022-04-03 13:13:10 +0100
commit45a81f5a2ce7ff8108ae8c29a3c5560ef5cbbbfe (patch)
treedf01e2cf05fb4c0cbfc18b8e4fe0198a9bcd39c1 /Userland/Libraries/LibWeb
parentf2b4c044dbd73c42dd0b35c4400dda7681af478b (diff)
downloadserenity-45a81f5a2ce7ff8108ae8c29a3c5560ef5cbbbfe.zip
Browser+LibWeb+WebContent: Add ability to inspect local storage
The storage inspector now has a new tab for local storage. The next step would be to persist local storage and receive real-time notifications for changes to update the table view.
Diffstat (limited to 'Userland/Libraries/LibWeb')
-rw-r--r--Userland/Libraries/LibWeb/HTML/Storage.h2
-rw-r--r--Userland/Libraries/LibWeb/OutOfProcessWebView.cpp5
-rw-r--r--Userland/Libraries/LibWeb/OutOfProcessWebView.h2
3 files changed, 9 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/Storage.h b/Userland/Libraries/LibWeb/HTML/Storage.h
index 091b2c0b75..4f5465ac2f 100644
--- a/Userland/Libraries/LibWeb/HTML/Storage.h
+++ b/Userland/Libraries/LibWeb/HTML/Storage.h
@@ -32,6 +32,8 @@ public:
Vector<String> supported_property_names() const;
+ auto const& map() const { return m_map; }
+
void dump() const;
private:
diff --git a/Userland/Libraries/LibWeb/OutOfProcessWebView.cpp b/Userland/Libraries/LibWeb/OutOfProcessWebView.cpp
index e3dd13ac99..04dfb260ed 100644
--- a/Userland/Libraries/LibWeb/OutOfProcessWebView.cpp
+++ b/Userland/Libraries/LibWeb/OutOfProcessWebView.cpp
@@ -490,6 +490,11 @@ String OutOfProcessWebView::dump_layout_tree()
return client().dump_layout_tree();
}
+OrderedHashMap<String, String> OutOfProcessWebView::get_local_storage_entries()
+{
+ return client().get_local_storage_entries();
+}
+
void OutOfProcessWebView::set_content_filters(Vector<String> filters)
{
client().async_set_content_filters(filters);
diff --git a/Userland/Libraries/LibWeb/OutOfProcessWebView.h b/Userland/Libraries/LibWeb/OutOfProcessWebView.h
index f996ae2116..181beddf3f 100644
--- a/Userland/Libraries/LibWeb/OutOfProcessWebView.h
+++ b/Userland/Libraries/LibWeb/OutOfProcessWebView.h
@@ -55,6 +55,8 @@ public:
String dump_layout_tree();
+ OrderedHashMap<String, String> get_local_storage_entries();
+
void set_content_filters(Vector<String>);
void set_preferred_color_scheme(Web::CSS::PreferredColorScheme);