2010-11-23 Jeremy Orlow <jorlow@chromium.org>
authorjorlow@chromium.org <jorlow@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 24 Nov 2010 17:57:30 +0000 (17:57 +0000)
committerjorlow@chromium.org <jorlow@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 24 Nov 2010 17:57:30 +0000 (17:57 +0000)
commit3939f696fad6d269689b63c78b61b7916f4df1c9
tree898dc39bd995edba928778ae67ddc08fa840d20e
parente7e3e4cfa0901489b3402e8bc7ffe9f623bb9782
2010-11-23  Jeremy Orlow  <jorlow@chromium.org>

        Reviewed by Steve Block.

        Fix minor errors in IndexedDB
        https://bugs.webkit.org/show_bug.cgi?id=49970

        * storage/indexeddb/constants-expected.txt:
        * storage/indexeddb/constants.html:
        * storage/indexeddb/createAndRemoveObjectStore-expected.txt: Added.
        * storage/indexeddb/createAndRemoveObjectStore.html: Added.
2010-11-23  Jeremy Orlow  <jorlow@chromium.org>

        Reviewed by Steve Block.

        Fix minor errors in IndexedDB
        https://bugs.webkit.org/show_bug.cgi?id=49970

        * Remove SNAPSHOT_READ per spec.
        * Assert that the transaction that changes the db is a setVersion
          transaction.
        * When an objectStore already exists, throw a CONSTRAINT_ERR.
        * When not in a setVersion transaction, throw a NOT_ALLOWED_ERR.

        Test: storage/indexeddb/createAndRemoveObjectStore.html

        * storage/IDBDatabase.cpp:
        (WebCore::IDBDatabase::createObjectStore):
        * storage/IDBDatabaseBackendImpl.cpp:
        (WebCore::IDBDatabaseBackendImpl::createObjectStore):
        * storage/IDBTransaction.h:
        * storage/IDBTransaction.idl:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@72682 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/storage/indexeddb/constants-expected.txt
LayoutTests/storage/indexeddb/constants.html
LayoutTests/storage/indexeddb/createAndRemoveObjectStore-expected.txt [new file with mode: 0644]
LayoutTests/storage/indexeddb/createAndRemoveObjectStore.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/storage/IDBDatabase.cpp
WebCore/storage/IDBDatabaseBackendImpl.cpp
WebCore/storage/IDBTransaction.h
WebCore/storage/IDBTransaction.idl