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

@ -566,6 +566,10 @@ void BrowserWindow::create_new_tab(URL url, bool activate)
return active_tab().view().get_local_storage_entries();
};
new_tab.on_get_session_storage_entries = [this]() {
return active_tab().view().get_session_storage_entries();
};
new_tab.load(url);
dbgln_if(SPAM_DEBUG, "Added new tab {:p}, loading {}", &new_tab, url);