Closed
Bug 698440
Opened 12 years ago
Closed 12 years ago
IndexedDB: Implement optional version syntax.
Categories
(Core :: Storage: IndexedDB, defect)
Core
Storage: IndexedDB
Tracking
()
RESOLVED
FIXED
People
(Reporter: khuey, Assigned: khuey)
References
Details
(Keywords: dev-doc-complete)
Attachments
(1 file)
4.60 KB,
patch
|
bent.mozilla
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Attachment #570711 -
Flags: review?(bent.mozilla)
The tests here look a bit lacking. Is it really testing that opening an existing database opens it with the database's existing version and objectStores, and that if there exists no database, a new one is created with version 1?
Assignee | ||
Comment 2•12 years ago
|
||
It's not testing anything with objectStores, but it is testing the version bits. Adding more tests isn't hard.
Comment on attachment 570711 [details] [diff] [review] Patch Review of attachment 570711 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/indexedDB/IDBFactory.cpp @@ +380,5 @@ > NS_IMETHODIMP > IDBFactory::Open(const nsAString& aName, > PRInt64 aVersion, > JSContext* aCx, > + PRUint8 aArgc, Nit: This isn't argc, it's the number of optional args passed. Call it 'aOptionalArgCount' ::: dom/indexedDB/OpenDatabaseHelper.cpp @@ +753,5 @@ > + // treat it as if version 1 were requested. > + if (mCurrentVersion == 0) { > + mRequestedVersion = 1; > + } > + // Otherwise, treat it as if the current version were requested. Nit: move this comment inside the else block. ::: dom/indexedDB/nsIIDBFactory.idl @@ +56,2 @@ > nsIIDBOpenDBRequest > + open(in AString name, [optional] in long long version); Nit: Each arg gets its own line.
Attachment #570711 -
Flags: review?(bent.mozilla) → review+
Assignee | ||
Comment 4•12 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/80af665378fd
Flags: in-testsuite+
Target Milestone: --- → mozilla10
Comment 5•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/80af665378fd
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Updated•12 years ago
|
Keywords: dev-doc-needed
Assignee | ||
Updated•12 years ago
|
Component: DOM → DOM: IndexedDB
Target Milestone: mozilla10 → ---
Comment 6•8 years ago
|
||
Already documented, see https://developer.mozilla.org/en-US/docs/Web/API/IDBFactory/open note added to https://developer.mozilla.org/en-US/Firefox/Releases/10#IndexedDB
Keywords: dev-doc-needed → dev-doc-complete
You need to log in
before you can comment on or make changes to this bug.
Description
•