[Webkit-unassigned] [Bug 77374] New: IndexedDB: Generate autoIncrement keys during add/put call

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jan 30 15:12:40 PST 2012


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

           Summary: IndexedDB: Generate autoIncrement keys during add/put
                    call
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebCore Misc.
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: jsbell at chromium.org


For generated keys (i.e. autoIncrement) the generation step should occur within the async task within the transaction (per discussion on mailing list). 

Currently the key injection call is deferred until the asynchronous task is executed during the transaction. This leaves open a hole where the value may not support key injection (e.g. the value is a string, on which properties can not be set). In this case, Chrome currently fires an error event at the IDBRequest.

This may require that in put() we check to see if a value can be inserted (by inserting a dummy value?) and then in putInternal() we run the key generation step and actually insert the key.

-- 
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