mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-03 04:52:06 +02:00
LibWeb/IDB: Fix record checking using the wrong key comparison
This commit is contained in:
committed by
Jelle Raaijmakers
parent
c81c17c0fb
commit
81d7f27c73
Notes:
github-actions[bot]
2025-04-29 15:07:31 +00:00
Author: https://github.com/stelar7 Commit: https://github.com/LadybirdBrowser/ladybird/commit/81d7f27c737 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4505 Reviewed-by: https://github.com/AtkinsSJ Reviewed-by: https://github.com/gmta ✅
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user