mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:47:45 +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
|
@ -555,6 +555,10 @@ void BrowserWindow::create_new_tab(URL url, bool activate)
|
|||
return m_cookie_jar.get_all_cookies();
|
||||
};
|
||||
|
||||
new_tab.on_get_local_storage_entries = [this]() {
|
||||
return active_tab().m_web_content_view->get_local_storage_entries();
|
||||
};
|
||||
|
||||
new_tab.load(url);
|
||||
|
||||
dbgln_if(SPAM_DEBUG, "Added new tab {:p}, loading {}", &new_tab, url);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue