mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:47: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
|
@ -613,6 +613,12 @@ void Tab::show_storage_inspector()
|
|||
m_storage_widget->add_cookie(cookie);
|
||||
}
|
||||
|
||||
if (on_get_local_storage_entries) {
|
||||
auto local_storage_entries = on_get_local_storage_entries();
|
||||
m_storage_widget->clear_local_storage_entries();
|
||||
m_storage_widget->set_local_storage_entries(local_storage_entries);
|
||||
}
|
||||
|
||||
auto* window = m_storage_widget->window();
|
||||
window->show();
|
||||
window->move_to_front();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue