mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +00:00
LibWeb/IDB: Fix record checking using the wrong key comparison
This commit is contained in:
parent
c81c17c0fb
commit
81d7f27c73
Notes:
github-actions[bot]
2025-04-29 15:07:31 +00:00
Author: https://github.com/stelar7
Commit: 81d7f27c73
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4505
Reviewed-by: https://github.com/AtkinsSJ
Reviewed-by: https://github.com/gmta ✅
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue