Modern IDB: Memory indexes aren't deleted when their owning memory object stores...
[WebKit-https.git] / Source / WebCore / Modules / indexeddb / server / MemoryBackingStoreTransaction.cpp
index 087c5da..8e0c767 100644 (file)
@@ -116,6 +116,8 @@ void MemoryBackingStoreTransaction::objectStoreDeleted(std::unique_ptr<MemoryObj
     ASSERT(m_objectStores.contains(objectStore.get()));
     m_objectStores.remove(objectStore.get());
 
+    objectStore->deleteAllIndexes(*this);
+
     auto addResult = m_deletedObjectStores.add(objectStore->info().name(), nullptr);
     if (addResult.isNewEntry)
         addResult.iterator->value = WTFMove(objectStore);