Skip to content
  • jorlow@chromium.org's avatar
    2011-01-11 Jeremy Orlow <jorlow@chromium.org> · d189d2c5
    jorlow@chromium.org authored
            Reviewed by Nate Chapin.
    
            Enforce READ_ONLY transactions in IndexedDB
            https://bugs.webkit.org/show_bug.cgi?id=52229
    
            Fix existing errors in tests + add a new test for
            this issue.
    
            * storage/indexeddb/cursor-delete-expected.txt:
            * storage/indexeddb/cursor-delete.html:
            * storage/indexeddb/cursor-index-delete-expected.txt:
            * storage/indexeddb/cursor-index-delete.html:
            * storage/indexeddb/database-quota-expected.txt:
            * storage/indexeddb/database-quota.html:
            * storage/indexeddb/objectstore-basics-expected.txt:
            * storage/indexeddb/objectstore-basics.html:
            * storage/indexeddb/objectstore-removeobjectstore-expected.txt:
            * storage/indexeddb/objectstore-removeobjectstore.html:
            * storage/indexeddb/transaction-basics-expected.txt:
            * storage/indexeddb/transaction-basics.html:
            * storage/indexeddb/transaction-crash-on-abort-expected.txt:
            * storage/indexeddb/transaction-crash-on-abort.html:
            * storage/indexeddb/transaction-read-only.html: Added.
    2011-01-11  Jeremy Orlow  <jorlow@chromium.org>
    
            Reviewed by Nate Chapin.
    
            Enforce READ_ONLY transactions in IndexedDB
            https://bugs.webkit.org/show_bug.cgi?id=52229
    
            Add READ_ONLY_ERR and return it whenever delete or put
            are called.  Note that IDBCursor's delete and update
            are simply aliases for delete/put, which is why no
            extra code is required to handle those cases.
    
            Test: storage/indexeddb/transaction-read-only.html
    
            * dom/ExceptionCode.cpp:
            * storage/IDBCursorBackendImpl.cpp:
            (WebCore::IDBCursorBackendImpl::deleteFunction):
            * storage/IDBDatabase.idl:
            * storage/IDBDatabaseException.h:
            * storage/IDBDatabaseException.idl:
            * storage/IDBObjectStoreBackendImpl.cpp:
            (WebCore::IDBObjectStoreBackendImpl::put):
            (WebCore::IDBObjectStoreBackendImpl::deleteFunction):
            (WebCore::IDBObjectStoreBackendImpl::deleteIndex):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75596 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    d189d2c5