[Webkit-unassigned] [Bug 62370] New: IndexedDB deleteIndex should throw NOT_ALLOWED_ERR if called outside a VERSION_CHANGE transaction callback

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jun 9 05:48:06 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=62370

           Summary: IndexedDB deleteIndex should throw NOT_ALLOWED_ERR if
                    called outside a VERSION_CHANGE transaction callback
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: New Bugs
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: pilgrim at chromium.org
                CC: tony at chromium.org, hans at chromium.org,
                    dgrogan at chromium.org


Created an attachment (id=96576)
 --> (https://bugs.webkit.org/attachment.cgi?id=96576&action=review)
test case

http://dvcs.w3.org/hg/IndexedDB/raw-file/tip/Overview.html#widl-IDBObjectStore-deleteIndex-void-DOMString-indexName states "Note that this method must only be called from a VERSION_CHANGE transaction callback. ... NOT_ALLOWED_ERR [indicates] This method was not called from a VERSION_CHANGE transaction callback."

This test opens a database, creates an objectstore, creates an index, waits for the VERSION_CHANGE transaction to end, and then attempts to delete the index.

Expected behavior: throws webkitIDBDatabaseException.NOT_ALLOWED_ERR
Actual behavior: throws webkitIDBDatabaseException.NOT_FOUND_ERR

Test case attached.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list