mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-27 20:52:01 +00:00
LibWeb/HTML: Make storage broadcast take optional strings
Matching the arguments specified by the spec, needed to properly represent null values.
This commit is contained in:
parent
bbf4739c8e
commit
9a1e5e1835
Notes:
github-actions[bot]
2025-01-02 10:39:32 +00:00
Author: https://github.com/shannonbooth
Commit: 9a1e5e1835
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3070
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/konradekk
2 changed files with 6 additions and 6 deletions
|
@ -33,7 +33,7 @@ public:
|
|||
Optional<String> key(size_t index);
|
||||
Optional<String> get_item(StringView key) const;
|
||||
WebIDL::ExceptionOr<void> set_item(String const& key, String const& value);
|
||||
void remove_item(StringView key);
|
||||
void remove_item(String const& key);
|
||||
void clear();
|
||||
|
||||
auto const& map() const { return m_map; }
|
||||
|
@ -55,7 +55,7 @@ private:
|
|||
virtual WebIDL::ExceptionOr<void> set_value_of_named_property(String const& key, JS::Value value) override;
|
||||
|
||||
void reorder();
|
||||
void broadcast(StringView key, StringView old_value, StringView new_value);
|
||||
void broadcast(Optional<String> const& key, Optional<String> const& old_value, Optional<String> const& new_value);
|
||||
|
||||
OrderedHashMap<String, String> m_map;
|
||||
Type m_type {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue