diff --git a/Libraries/LibWeb/IndexedDB/IDBObjectStore.cpp b/Libraries/LibWeb/IndexedDB/IDBObjectStore.cpp index d7ac16cd8c3..6a05040553d 100644 --- a/Libraries/LibWeb/IndexedDB/IDBObjectStore.cpp +++ b/Libraries/LibWeb/IndexedDB/IDBObjectStore.cpp @@ -26,6 +26,9 @@ IDBObjectStore::IDBObjectStore(JS::Realm& realm, GC::Ref store, GC: , m_name(store->name()) { transaction->add_to_scope(store); + + // An object store handle has an index set, which is initialized to the set of indexes that reference the associated object store when the object store handle is created. + m_indexes = MUST(store->index_set().clone()); } GC::Ref IDBObjectStore::create(JS::Realm& realm, GC::Ref store, GC::Ref transaction)