[Webkit-unassigned] [Bug 47245] IDBDatabase and IDBObjectStore metadata is not recovered correctly when the setVersion transactions aborts.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Oct 6 15:31:04 PDT 2010


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


Jeremy Orlow <jorlow at chromium.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #69997|review?                     |review+
               Flag|                            |




--- Comment #5 from Jeremy Orlow <jorlow at chromium.org>  2010-10-06 15:31:04 PST ---
(From update of attachment 69997)
View in context: https://bugs.webkit.org/attachment.cgi?id=69997&action=review

r=me

> WebCore/storage/IDBDatabase.cpp:62
> +    if (!objectStore || !m_setVersionTransaction)

Do this before you call the backend function!!

> WebCore/storage/IDBDatabaseBackendImpl.cpp:143
> +                                   createCallbackTask(&IDBDatabaseBackendImpl::removeObjectStoreFromMap, database, objectStore)))

{}

> WebCore/storage/IDBDatabaseBackendImpl.cpp:217
> +                                   createCallbackTask(&IDBDatabaseBackendImpl::resetVersion, database, m_version)))

use {}

> WebCore/storage/IDBObjectStoreBackendImpl.cpp:279
> +                                   createCallbackTask(&IDBObjectStoreBackendImpl::removeIndexFromMap, objectStore, index)))

use {}s

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