diff --git a/Userland/Libraries/LibWeb/StorageAPI/StorageKey.h b/Userland/Libraries/LibWeb/StorageAPI/StorageKey.h index b9d4a8bb0ae..edcfbefa64b 100644 --- a/Userland/Libraries/LibWeb/StorageAPI/StorageKey.h +++ b/Userland/Libraries/LibWeb/StorageAPI/StorageKey.h @@ -7,6 +7,7 @@ #pragma once #include +#include #include #include @@ -32,3 +33,13 @@ Optional obtain_a_storage_key(HTML::Environment const&); StorageKey obtain_a_storage_key_for_non_storage_purposes(HTML::Environment const&); } + +namespace AK { +template<> +struct Traits : public DefaultTraits { + static unsigned hash(Web::StorageAPI::StorageKey const& key) + { + return Traits::hash(key.origin); + } +}; +}