1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 20:08:13 +00:00

Browser+LibWeb+WebContent: Add ability to inspect session storage

This commit is contained in:
Rafał Babiarz 2022-05-07 22:45:43 +02:00 committed by Linus Groh
parent 1ffba0b8b4
commit b162b7eec6
14 changed files with 97 additions and 15 deletions

View file

@ -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();
}
}