mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
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.
This commit is contained in:
parent
f2b4c044db
commit
45a81f5a2c
Notes:
sideshowbarker
2024-07-17 14:33:18 +09:00
Author: https://github.com/vkoskiv
Commit: 45a81f5a2c
Pull-request: https://github.com/SerenityOS/serenity/pull/13421
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/linusg
14 changed files with 168 additions and 4 deletions
|
@ -468,4 +468,10 @@ void ConnectionFromClient::set_is_scripting_enabled(bool is_scripting_enabled)
|
|||
m_page_host->set_is_scripting_enabled(is_scripting_enabled);
|
||||
}
|
||||
|
||||
Messages::WebContentServer::GetLocalStorageEntriesResponse ConnectionFromClient::get_local_storage_entries()
|
||||
{
|
||||
auto* document = page().top_level_browsing_context().active_document();
|
||||
auto local_storage = document->window().local_storage();
|
||||
return local_storage->map();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue