mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-28 21:26:22 +00:00
LibWeb: Copy IDBDatabase object stores through Vector(ReadonlySpan)
Prevents a crash because `ReadonlySpan.copy_to()` was trying to copy to an empty vector. Fixes #4127.
This commit is contained in:
parent
f5dd776b11
commit
006f276cab
Notes:
github-actions[bot]
2025-03-27 23:14:27 +00:00
Author: https://github.com/gmta
Commit: 006f276cab
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4129
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ IDBDatabase::IDBDatabase(JS::Realm& realm, Database& db)
|
||||||
, m_associated_database(db)
|
, m_associated_database(db)
|
||||||
{
|
{
|
||||||
db.associate(*this);
|
db.associate(*this);
|
||||||
db.object_stores().copy_to(m_object_store_set);
|
m_object_store_set = Vector<GC::Ref<ObjectStore>> { db.object_stores() };
|
||||||
}
|
}
|
||||||
|
|
||||||
IDBDatabase::~IDBDatabase() = default;
|
IDBDatabase::~IDBDatabase() = default;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue