Modern IDB: IDBObjectStore.deleteIndex() support
Created attachment 265871 [details] Patch v1
Created attachment 265873 [details] Patch v2
Created attachment 265874 [details] Patch v3
Comment on attachment 265874 [details] Patch v3 View in context: https://bugs.webkit.org/attachment.cgi?id=265874&action=review > Source/WebCore/Modules/indexeddb/client/IDBIndexImpl.cpp:332 > + m_deleted = true; Add tests for this. Probably to existing tests. > Source/WebCore/Modules/indexeddb/client/TransactionOperation.h:149 > + auto operation = new TransactionOperationImpl<MP1, MP2>(transaction, complete, perform, parameter1, parameter2); auto* > Source/WebCore/Modules/indexeddb/server/IDBServer.cpp:211 > + if (!transaction) There are no tests that delete a non-existent index. > Source/WebCore/Modules/indexeddb/server/MemoryObjectStore.cpp:109 > + if (m_info.hasIndex(index->info().name())) ASSERT(index); or early return.
(In reply to comment #4) > > Source/WebCore/Modules/indexeddb/client/TransactionOperation.h:149 > > + auto operation = new TransactionOperationImpl<MP1, MP2>(transaction, complete, perform, parameter1, parameter2); > > auto* None of the other impls in this file do that, and it's not necessary to resolve an ambiguity, so I'll be skipping it in this patch.
https://trac.webkit.org/changeset/192645