Closed
Bug 618135
Opened 15 years ago
Closed 15 years ago
IndexedDB: Implement update() on index cursors (not on index key cursors)
Categories
(Core :: Storage: IndexedDB, defect)
Core
Storage: IndexedDB
Tracking
()
RESOLVED
FIXED
| Tracking | Status | |
|---|---|---|
| blocking2.0 | --- | betaN+ |
People
(Reporter: bent.mozilla, Assigned: bent.mozilla)
Details
Attachments
(1 file, 1 obsolete file)
|
29.23 KB,
patch
|
sicking
:
review+
|
Details | Diff | Splinter Review |
Need to implement update() on index cursors.
Comment 1•15 years ago
|
||
This is part of the last set of bugs we've deemed necessary in order to ship 2.0, blocking beta9.
blocking2.0: ? → beta9+
| Assignee | ||
Comment 2•15 years ago
|
||
Attachment #497226 -
Flags: review?(jonas)
| Assignee | ||
Comment 3•15 years ago
|
||
Oops, this is the right patch.
Attachment #497226 -
Attachment is obsolete: true
Attachment #497227 -
Flags: review?(jonas)
Attachment #497226 -
Flags: review?(jonas)
Comment on attachment 497227 [details] [diff] [review]
Patch, v1
> IDBCursor::Update(const jsval& aValue,
...
>+#ifdef DEBUG
>+ NS_ASSERTION(mObjectStore, "This cannot be null!");
>+ NS_ASSERTION(!mKey.IsUnset() , "Bad key!");
>+
>+ if (mType == INDEXOBJECT) {
>+ NS_ASSERTION(!mObjectKey.IsUnset(), "Bad key!");
>+ }
>+#endif
Change the last assertion to
NS_ASSERTION(mType != INDEXOBJECT || !mObjectKey.IsUnset(), "Bad key!");
and remove the #ifdef
r=me with that
Attachment #497227 -
Flags: review?(jonas) → review+
| Assignee | ||
Comment 5•15 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
As per today's meeting, beta 9 will be a time-based release. Marking these all betaN+. Please move it back to beta9+ if you believe it MUST be in the next beta (ie: trunk is in an unshippable state without this)
blocking2.0: beta9+ → betaN+
Component: DOM → DOM: IndexedDB
Version: Trunk → unspecified
You need to log in
before you can comment on or make changes to this bug.
Description
•