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

Issue 2627453002: IDBObjectStore/IDBIndex.getAll/getAllKeys should have [EnforceRange] (Closed)

Created:
3 years, 11 months ago by jsbell
Modified:
3 years, 11 months ago
Reviewers:
pwnall
CC:
chromium-reviews, blink-reviews, haraken, jsbell+idb_chromium.org, cmumford
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

IDBObjectStore/IDBIndex.getAll/getAllKeys should have [EnforceRange] Per spec, the |count| argument for the getAll() and getAllKeys() method should have the [EnforceRange] extended attribute which makes the method throw if an invalid number or number out of range is passed (e.g. not a number, infinity, negative, etc) rather than silently coercing as is the default (for historical reasons). Blink was just missing these attributes on three of the four methods. Firefox has them. Added the attributes and test cases. BUG=679465 R=pwnall@chromium.org Review-Url: https://codereview.chromium.org/2627453002 Cr-Commit-Position: refs/heads/master@{#442419} Committed: https://chromium.googlesource.com/chromium/src/+/99435bd5b9707422116b5aa06e4fc81adbeb34b7

Patch Set 1 #

Messages

Total messages: 12 (7 generated)
jsbell
pwnall@ - can you take a look? Noticed this c/o https://github.com/w3c/IndexedDB/issues/131 (spec is fine, blink ...
3 years, 11 months ago (2017-01-09 21:20:12 UTC) #3
pwnall
LGTM. Would you like me to upstream these tests after they land, and remove them ...
3 years, 11 months ago (2017-01-09 21:35:55 UTC) #4
jsbell
On 2017/01/09 21:35:55, pwnall wrote: > Would you like me to upstream these tests after ...
3 years, 11 months ago (2017-01-09 22:13:40 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2627453002/1
3 years, 11 months ago (2017-01-09 23:40:37 UTC) #9
commit-bot: I haz the power
3 years, 11 months ago (2017-01-10 00:29:22 UTC) #12
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/99435bd5b9707422116b5aa06e4f...

Powered by Google App Engine
This is Rietveld 408576698