Bug 62322 - IndexedDB test: odd database names
Summary: IndexedDB test: odd database names
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
Depends on:
Reported: 2011-06-08 14:10 PDT by Mark Pilgrim (Google)
Modified: 2011-06-13 15:30 PDT (History)
4 users (show)

See Also:

Patch (4.43 KB, patch)
2011-06-08 14:11 PDT, Mark Pilgrim (Google)
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Pilgrim (Google) 2011-06-08 14:10:12 PDT
http://dvcs.w3.org/hg/IndexedDB/raw-file/tip/Overview.html#database-concept states "Every database has a name which identifies it within a specific origin. The name can be any string value. ... Implementations must support all names. If a implementation uses a storage mechanism which can't handle arbitrary database names, the implementation must use an escaping mechanism or something similar to map the provided name to a name that it can handle."

This test creates a series of databases with names as odd Unicode characters (null, surrogate code points, non-BMP characters, etc) that are traditionally problematic for storage systems.

WebKit passes this test.
Comment 1 Mark Pilgrim (Google) 2011-06-08 14:11:32 PDT
Created attachment 96476 [details]
Comment 2 David Grogan 2011-06-08 14:15:48 PDT
Comment on attachment 96476 [details]

Could you add another couple of steps here: add data to each objectstore, close it, reopen it with the crazy name and ensure the data is still there?
Comment 3 Mark Pilgrim (Google) 2011-06-08 20:08:56 PDT
Good call, there are some string keys which are not stored and/or retrieved properly. Tracked separately as bug 62348.
Comment 4 Eric Seidel (no email) 2011-06-13 15:21:36 PDT
Comment on attachment 96476 [details]

I like tests!
Comment 5 WebKit Review Bot 2011-06-13 15:30:01 PDT
Comment on attachment 96476 [details]

Clearing flags on attachment: 96476

Committed r88713: <http://trac.webkit.org/changeset/88713>
Comment 6 WebKit Review Bot 2011-06-13 15:30:05 PDT
All reviewed patches have been landed.  Closing bug.