mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-26 06:18:59 +00:00
parent
7fee54b34e
commit
b08db3dc1e
Notes:
github-actions[bot]
2025-01-07 07:07:29 +00:00
Author: https://github.com/shannonbooth
Commit: b08db3dc1e
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3160
Reviewed-by: https://github.com/tcl3 ✅
1 changed files with 3 additions and 4 deletions
|
@ -144,8 +144,7 @@ WebIDL::ExceptionOr<void> Storage::set_item(String const& key, String const& val
|
|||
// https://html.spec.whatwg.org/multipage/webstorage.html#dom-storage-removeitem
|
||||
void Storage::remove_item(String const& key)
|
||||
{
|
||||
// 1. If this's map[key] does not exist, then return null.
|
||||
// FIXME: Return null?
|
||||
// 1. If this's map[key] does not exist, then return.
|
||||
auto it = map().find(key);
|
||||
if (it == map().end())
|
||||
return;
|
||||
|
@ -190,8 +189,8 @@ void Storage::broadcast(Optional<String> const& key, Optional<String> const& old
|
|||
auto& relevant_global = relevant_global_object(*this);
|
||||
auto const& this_document = verify_cast<Window>(relevant_global).associated_document();
|
||||
|
||||
// 2. Let url be thisDocument's URL.
|
||||
auto url = this_document.url().to_string();
|
||||
// 2. Let url be the serialization of thisDocument's URL.
|
||||
auto url = this_document.url().serialize();
|
||||
|
||||
// 3. Let remoteStorages be all Storage objects excluding storage whose:
|
||||
GC::RootVector<GC::Ref<Storage>> remote_storages(heap());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue