1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:17:44 +00:00

LibWeb/HTML: Propagate OOM errors from Window::{local,session}_storage()

This requires a bit of error type conversion glue as HashMap::try_ensure
expects the callback to return ErrorOr<T> like the function itself does.
This commit is contained in:
Linus Groh 2023-03-11 18:06:11 +00:00
parent 4da68384e6
commit 324dacbc5d
3 changed files with 24 additions and 16 deletions

View file

@ -115,8 +115,8 @@ public:
void fire_a_page_transition_event(DeprecatedFlyString const& event_name, bool persisted);
JS::NonnullGCPtr<HTML::Storage> local_storage();
JS::NonnullGCPtr<HTML::Storage> session_storage();
WebIDL::ExceptionOr<JS::NonnullGCPtr<HTML::Storage>> local_storage();
WebIDL::ExceptionOr<JS::NonnullGCPtr<HTML::Storage>> session_storage();
void start_an_idle_period();