mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-05 07:41:01 +00:00
WebContent: Delete unused get_local{session}_storage_entries() IPC calls
This commit is contained in:
parent
d31a58a7d6
commit
70a29f36c6
Notes:
github-actions[bot]
2025-06-12 15:06:09 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: 70a29f36c6
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5052
Reviewed-by: https://github.com/shannonbooth ✅
Reviewed-by: https://github.com/trflynn89
3 changed files with 0 additions and 28 deletions
|
@ -1152,28 +1152,6 @@ void ConnectionFromClient::did_update_window_rect(u64 page_id)
|
|||
page->page().did_update_window_rect();
|
||||
}
|
||||
|
||||
Messages::WebContentServer::GetLocalStorageEntriesResponse ConnectionFromClient::get_local_storage_entries(u64 page_id)
|
||||
{
|
||||
auto page = this->page(page_id);
|
||||
if (!page.has_value())
|
||||
return OrderedHashMap<String, String> {};
|
||||
|
||||
auto* document = page->page().top_level_browsing_context().active_document();
|
||||
auto local_storage = document->window()->local_storage().release_value_but_fixme_should_propagate_errors();
|
||||
return local_storage->map();
|
||||
}
|
||||
|
||||
Messages::WebContentServer::GetSessionStorageEntriesResponse ConnectionFromClient::get_session_storage_entries(u64 page_id)
|
||||
{
|
||||
auto page = this->page(page_id);
|
||||
if (!page.has_value())
|
||||
return OrderedHashMap<String, String> {};
|
||||
|
||||
auto* document = page->page().top_level_browsing_context().active_document();
|
||||
auto session_storage = document->window()->session_storage().release_value_but_fixme_should_propagate_errors();
|
||||
return session_storage->map();
|
||||
}
|
||||
|
||||
void ConnectionFromClient::handle_file_return(u64, i32 error, Optional<IPC::File> file, i32 request_id)
|
||||
{
|
||||
auto file_request = m_requested_files.take(request_id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue