Modern IDB: Memory indexes aren't deleted when their owning memory object stores...
authorbeidson@apple.com <beidson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 5 Jan 2016 00:06:05 +0000 (00:06 +0000)
committerbeidson@apple.com <beidson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 5 Jan 2016 00:06:05 +0000 (00:06 +0000)
commit7c7c9ac0cbe494bae13e8fbee73bbefdee32f1ed
tree791d2a2cd9e281602936db5d67d2e55d093e79cb
parent70c797bf4ffd12f03aa1770b31c998bf177bd327
Modern IDB: Memory indexes aren't deleted when their owning memory object stores are deleted.
https://bugs.webkit.org/show_bug.cgi?id=152717

Reviewed by Alex Christensen.

Source/WebCore:

Test: storage/indexeddb/modern/memory-index-not-deleted-with-objectstore.html

* Modules/indexeddb/server/MemoryBackingStoreTransaction.cpp:
(WebCore::IDBServer::MemoryBackingStoreTransaction::objectStoreDeleted):
* Modules/indexeddb/server/MemoryObjectStore.cpp:
(WebCore::IDBServer::MemoryObjectStore::deleteAllIndexes):
* Modules/indexeddb/server/MemoryObjectStore.h:

LayoutTests:

* storage/indexeddb/modern/memory-index-not-deleted-with-objectstore-expected.txt: Added.
* storage/indexeddb/modern/memory-index-not-deleted-with-objectstore.html: Added.
* storage/indexeddb/modern/resources/memory-index-not-deleted-with-objectstore.js: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@194563 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/storage/indexeddb/modern/memory-index-not-deleted-with-objectstore-expected.txt [new file with mode: 0644]
LayoutTests/storage/indexeddb/modern/memory-index-not-deleted-with-objectstore.html [new file with mode: 0644]
LayoutTests/storage/indexeddb/modern/resources/memory-index-not-deleted-with-objectstore.js [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/Modules/indexeddb/server/MemoryBackingStoreTransaction.cpp
Source/WebCore/Modules/indexeddb/server/MemoryObjectStore.cpp
Source/WebCore/Modules/indexeddb/server/MemoryObjectStore.h