mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:37:34 +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
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