Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1333)

Issue 1303983002: IndexedDB: Treat count of 0 as unbounded for getAll() methods (Closed)

Created:
5 years, 4 months ago by jsbell
Modified:
5 years, 4 months ago
Reviewers:
cmumford
CC:
blink-reviews, jsbell+idb_chromium.org, dgrogan, cmumford
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

IndexedDB: Treat count of 0 as unbounded for getAll() methods After discussions w/ Moz and spec updates, modify the experimental (behind a flag) IDBObjectStore/IDBIndex getAll()/getAllKeys() methods to treat 0 the same as "not passed", and return as many results as possible. Also adds missing tests for IDBObjectStore.getAllKeys() and tweaks the tests to avoid the deprecated assert_object_equals() function. R=cmumford@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=200999

Patch Set 1 #

Total comments: 10

Patch Set 2 : Review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+112 lines, -122 lines) Patch
M LayoutTests/storage/indexeddb/index-getall.html View 1 13 chunks +32 lines, -42 lines 0 comments Download
M LayoutTests/storage/indexeddb/index-getallkeys.html View 1 2 chunks +9 lines, -8 lines 0 comments Download
M LayoutTests/storage/indexeddb/objectstore-getall.html View 1 14 chunks +26 lines, -21 lines 0 comments Download
A + LayoutTests/storage/indexeddb/objectstore-getallkeys.html View 1 10 chunks +36 lines, -37 lines 0 comments Download
M Source/modules/indexeddb/IDBDatabase.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M Source/modules/indexeddb/IDBDatabase.cpp View 1 1 chunk +0 lines, -1 line 0 comments Download
M Source/modules/indexeddb/IDBIndex.cpp View 1 chunk +3 lines, -4 lines 0 comments Download
M Source/modules/indexeddb/IDBObjectStore.cpp View 2 chunks +6 lines, -8 lines 0 comments Download

Messages

Total messages: 8 (1 generated)
jsbell
cmumford@ - please take a look?
5 years, 4 months ago (2015-08-20 23:28:03 UTC) #1
jsbell
https://codereview.chromium.org/1303983002/diff/1/LayoutTests/storage/indexeddb/objectstore-getall.html File LayoutTests/storage/indexeddb/objectstore-getall.html (right): https://codereview.chromium.org/1303983002/diff/1/LayoutTests/storage/indexeddb/objectstore-getall.html#newcode31 LayoutTests/storage/indexeddb/objectstore-getall.html:31: store.put('value-' + letter, letter); FYI, I made this change ...
5 years, 4 months ago (2015-08-21 17:16:38 UTC) #2
cmumford
https://codereview.chromium.org/1303983002/diff/1/LayoutTests/storage/indexeddb/index-getall.html File LayoutTests/storage/indexeddb/index-getall.html (right): https://codereview.chromium.org/1303983002/diff/1/LayoutTests/storage/indexeddb/index-getall.html#newcode118 LayoutTests/storage/indexeddb/index-getall.html:118: assert_array_equals(data.map(e => e.upper), 'ABCDEFGHIJ'.split('')); Yes, much better approach. https://codereview.chromium.org/1303983002/diff/1/LayoutTests/storage/indexeddb/index-getall.html#newcode200 ...
5 years, 4 months ago (2015-08-21 17:32:40 UTC) #3
jsbell
https://codereview.chromium.org/1303983002/diff/1/LayoutTests/storage/indexeddb/index-getall.html File LayoutTests/storage/indexeddb/index-getall.html (right): https://codereview.chromium.org/1303983002/diff/1/LayoutTests/storage/indexeddb/index-getall.html#newcode200 LayoutTests/storage/indexeddb/index-getall.html:200: alphabet.map(e => e.toUpperCase())); On 2015/08/21 17:32:40, cmumford wrote: > ...
5 years, 4 months ago (2015-08-21 17:48:33 UTC) #4
cmumford
lgtm
5 years, 4 months ago (2015-08-21 18:01:48 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1303983002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1303983002/20001
5 years, 4 months ago (2015-08-21 18:02:38 UTC) #7
commit-bot: I haz the power
5 years, 4 months ago (2015-08-21 18:48:24 UTC) #8
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=200999

Powered by Google App Engine
This is Rietveld 408576698