diff options
author | Valtteri Koskivuori <vkoskiv@gmail.com> | 2022-04-02 00:14:04 +0300 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-04-03 13:13:10 +0100 |
commit | 45a81f5a2ce7ff8108ae8c29a3c5560ef5cbbbfe (patch) | |
tree | df01e2cf05fb4c0cbfc18b8e4fe0198a9bcd39c1 /Userland/Libraries/LibWeb | |
parent | f2b4c044dbd73c42dd0b35c4400dda7681af478b (diff) | |
download | serenity-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.h | 2 | ||||
-rw-r--r-- | Userland/Libraries/LibWeb/OutOfProcessWebView.cpp | 5 | ||||
-rw-r--r-- | Userland/Libraries/LibWeb/OutOfProcessWebView.h | 2 |
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); |