mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 05:09:12 +00:00
Browser+LibWeb+WebContent: Add ability to inspect session storage
This commit is contained in:
parent
1ffba0b8b4
commit
b162b7eec6
Notes:
sideshowbarker
2024-07-17 10:36:38 +09:00
Author: https://github.com/Sauler
Commit: b162b7eec6
Pull-request: https://github.com/SerenityOS/serenity/pull/13963
Reviewed-by: https://github.com/linusg
14 changed files with 97 additions and 15 deletions
|
@ -493,4 +493,11 @@ Messages::WebContentServer::GetLocalStorageEntriesResponse ConnectionFromClient:
|
|||
auto local_storage = document->window().local_storage();
|
||||
return local_storage->map();
|
||||
}
|
||||
|
||||
Messages::WebContentServer::GetSessionStorageEntriesResponse ConnectionFromClient::get_session_storage_entries()
|
||||
{
|
||||
auto* document = page().top_level_browsing_context().active_document();
|
||||
auto session_storage = document->window().session_storage();
|
||||
return session_storage->map();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue