RESOLVED FIXED 94972
IndexedDB: Remove IDBDatabase.setVersion API
https://bugs.webkit.org/show_bug.cgi?id=94972
Summary IndexedDB: Remove IDBDatabase.setVersion API
Joshua Bell
Reported 2012-08-24 13:58:14 PDT
The IDBDatabase.setVersion() API is from an older version of the spec, and maintained for compatibility until sites using the Chromium implementation of IndexedDB have had a chance to update. The new IDBFactory.open(name, version) / "upgradeneeded" event model is the new way to version databases. Once a grace period has passed, we should remove it.
Attachments
Patch (28.46 KB, patch)
2012-11-19 16:52 PST, David Grogan
no flags
Patch (29.86 KB, patch)
2012-11-19 16:54 PST, David Grogan
no flags
Patch (42.51 KB, patch)
2012-11-20 17:43 PST, David Grogan
no flags
Patch (33.92 KB, patch)
2012-11-27 10:39 PST, David Grogan
no flags
Patch (34.65 KB, patch)
2012-11-27 11:15 PST, David Grogan
no flags
David Grogan
Comment 1 2012-11-19 16:52:16 PST
David Grogan
Comment 2 2012-11-19 16:54:08 PST
David Grogan
Comment 3 2012-11-19 17:01:29 PST
This patch leaves some setVersion artifacts in IDBDatabaseBackendImpl, that class is pretty fragile. There are also some remnants in the webkit api that can't be taken out until chromium code is updated.
WebKit Review Bot
Comment 4 2012-11-19 21:10:12 PST
Comment on attachment 175080 [details] Patch Attachment 175080 [details] did not pass chromium-ews (chromium-xvfb): Output: http://queues.webkit.org/results/14906449 New failing tests: storage/indexeddb/pending-version-change-on-exit.html http/tests/inspector/indexeddb/database-data.html http/tests/inspector/indexeddb/database-structure.html http/tests/inspector/indexeddb/resources-panel.html
Joshua Bell
Comment 5 2012-11-20 09:58:25 PST
Comment on attachment 175080 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=175080&action=review > Source/WebCore/Modules/indexeddb/IDBDatabaseBackendImpl.cpp:314 > + ASSERT(m_pendingSetVersionCalls.isEmpty()); Why keep this? > Source/WebCore/Modules/indexeddb/IDBDatabaseBackendImpl.h:110 > + // FIXME: Remove these. And these? I don't see anything remaining that creates them.
David Grogan
Comment 6 2012-11-20 17:43:22 PST
David Grogan
Comment 7 2012-11-20 17:44:46 PST
(In reply to comment #5) > (From update of attachment 175080 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=175080&action=review > > > Source/WebCore/Modules/indexeddb/IDBDatabaseBackendImpl.cpp:314 > > + ASSERT(m_pendingSetVersionCalls.isEmpty()); > > Why keep this? > > > Source/WebCore/Modules/indexeddb/IDBDatabaseBackendImpl.h:110 > > + // FIXME: Remove these. > > And these? I don't see anything remaining that creates them. Removed both.
Joshua Bell
Comment 8 2012-11-27 09:39:56 PST
Comment on attachment 175312 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=175312&action=review > LayoutTests/ChangeLog:14 > + IndexedDB: remove setVersion from inspector tests Looks like this patch was based on another (leading to two changelog entries and the extra diff below). Rebase please? > LayoutTests/storage/indexeddb/removed-expected.txt:9 > +PASS 'setVersion' in IDBDatabase.prototype is false FYI this will need rebasing as nearby lines have changed.
David Grogan
Comment 9 2012-11-27 10:39:22 PST
Joshua Bell
Comment 10 2012-11-27 11:10:49 PST
Comment on attachment 176296 [details] Patch lgtm, w00t! (looks like it will need another rebase on top of r135856 though)
David Grogan
Comment 11 2012-11-27 11:15:05 PST
David Grogan
Comment 12 2012-11-27 11:32:33 PST
Tony, could you review this?
WebKit Review Bot
Comment 13 2012-11-27 12:46:30 PST
Comment on attachment 176306 [details] Patch Clearing flags on attachment: 176306 Committed r135904: <http://trac.webkit.org/changeset/135904>
WebKit Review Bot
Comment 14 2012-11-27 12:46:35 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.