1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:37:35 +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

@ -615,6 +615,12 @@ void Tab::show_storage_inspector()
m_storage_widget->set_local_storage_entries(local_storage_entries);
}
if (on_get_session_storage_entries) {
auto session_storage_entries = on_get_session_storage_entries();
m_storage_widget->clear_session_storage_entries();
m_storage_widget->set_session_storage_entries(session_storage_entries);
}
auto* window = m_storage_widget->window();
window->show();
window->move_to_front();