Closed
Bug 696914
Opened 13 years ago
Closed 13 years ago
IndexedDB: IDBObjectStore.delete and IDBCursor.delete should return undefined
Categories
(Core :: Storage: IndexedDB, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: sicking, Assigned: bent.mozilla)
References
Details
(Keywords: dev-doc-complete)
Attachments
(1 file)
3.78 KB,
patch
|
bent.mozilla
:
review+
|
Details | Diff | Splinter Review |
I.e. the .result of the returned request should be set to true if a record was deleted, and false otherwise.
Reporter | ||
Comment 1•13 years ago
|
||
Based on discussions at TPAC, I think we'll end up changing the spec here to always return undefined.
Summary: IndexedDB: IDBObjectStore.delete and IDBCursor.delete should return true/false indicating if something was removed → IndexedDB: IDBObjectStore.delete and IDBCursor.delete should return undefined
Assignee | ||
Comment 2•13 years ago
|
||
Woo! Otherwise we were going to have to hack something into mozStorage to expose the data we need from SQLite.
Assignee | ||
Comment 3•13 years ago
|
||
(In reply to ben turner [:bent] from comment #2) > Woo! Otherwise we were going to have to hack something into mozStorage to > expose the data we need from SQLite. http://www.sqlite.org/c3ref/changes.html
Assignee | ||
Comment 4•13 years ago
|
||
Has r=sicking.
Assignee | ||
Comment 5•13 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/966c69671224
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Comment 6•13 years ago
|
||
(In reply to ben turner [:bent] from comment #3) > (In reply to ben turner [:bent] from comment #2) > > Woo! Otherwise we were going to have to hack something into mozStorage to > > expose the data we need from SQLite. > > http://www.sqlite.org/c3ref/changes.html I had to add this for Files in IndexedDB
Updated•13 years ago
|
Keywords: dev-doc-needed
Updated•13 years ago
|
Target Milestone: --- → mozilla10
Comment 7•13 years ago
|
||
I'm trying to document this. I have a question. As both in the published spec (TR) and the editor's draft give an IDBRequest as the result for the two method, could you confirm that it is the IDBResult.result that really returns undefined? Thank you in advance
Reporter | ||
Comment 8•13 years ago
|
||
Yes, that's correct. For all database operations the "result" is retrieved through IDBRequest.result once the success event is fired.
Comment 9•13 years ago
|
||
I updated: https://developer.mozilla.org/en/IndexedDB/IDBObjectStore#delete%28%29 https://developer.mozilla.org/en/IndexedDB/IDBCursor#delete%28%29 and of course https://developer.mozilla.org/en/Firefox_10_for_developers#section_8
Keywords: dev-doc-needed → dev-doc-complete
Component: DOM → DOM: IndexedDB
Target Milestone: mozilla10 → ---
Version: Trunk → unspecified
You need to log in
before you can comment on or make changes to this bug.
Description
•