LibWeb/IDB: Fix record checking using the wrong key comparison

This commit is contained in:
stelar7 2025-04-28 15:56:53 +02:00 committed by Jelle Raaijmakers
commit 81d7f27c73
Notes: github-actions[bot] 2025-04-29 15:07:31 +00:00

View file

@ -51,7 +51,7 @@ void ObjectStore::remove_records_in_range(GC::Ref<IDBKeyRange> range)
bool ObjectStore::has_record_with_key(GC::Ref<Key> key)
{
auto index = m_records.find_if([&key](auto const& record) {
return record.key == key;
return Key::equals(key, record.key);
});
return index != m_records.end();