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

Issue 2265443002: Fix an overflow in valueAsDate setter of temporal input types. (Closed)

Created:
4 years, 4 months ago by tkent
Modified:
4 years, 4 months ago
Reviewers:
bashi
CC:
blink-reviews, blink-reviews-html_chromium.org, blink-reviews-wtf_chromium.org, chromium-reviews, dglazkov+blink, Mikhail
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix an overflow in valueAsDate setter of temporal input types. According to the HTML specification [1], we should throw a TypeError if a non-Date object is specified to valueAsDate. - Update toCoreDate() so that it throws a TypeError for non-Date objects. - Also, add DCHECKs to WTF::msToYear. Note: Web IDL CR doesn't accept |null| for Date conversion [2]. However the specification itself is deprecated. [1] https://html.spec.whatwg.org/multipage/forms.html#dom-input-valueasdate [2] https://www.w3.org/TR/WebIDL/#es-Date BUG=637115 Committed: https://crrev.com/338614224cc310e73e59496869000ef87b46e6c1 Cr-Commit-Position: refs/heads/master@{#413410}

Patch Set 1 : Fix an overflow in valueAsDate setter of month input type. #

Patch Set 2 : accept null #

Messages

Total messages: 26 (18 generated)
tkent
bashi@, would you review this please?
4 years, 4 months ago (2016-08-22 02:45:14 UTC) #11
bashi
Changes itself lgtm. Could you update the description to reflect followings? - We don't follow ...
4 years, 4 months ago (2016-08-22 03:13:59 UTC) #12
tkent
On 2016/08/22 at 03:13:59, bashi wrote: > Changes itself lgtm. > > Could you update ...
4 years, 4 months ago (2016-08-22 03:23:12 UTC) #13
tkent
Uploaded a new patch set. Please take another look at it.
4 years, 4 months ago (2016-08-22 05:22:30 UTC) #17
bashi
still lgtm.
4 years, 4 months ago (2016-08-22 05:30:48 UTC) #18
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/2265443002/40001
4 years, 4 months ago (2016-08-22 05:43:18 UTC) #23
commit-bot: I haz the power
Committed patchset #2 (id:40001)
4 years, 4 months ago (2016-08-22 05:47:23 UTC) #24
commit-bot: I haz the power
4 years, 4 months ago (2016-08-22 05:48:48 UTC) #26
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/338614224cc310e73e59496869000ef87b46e6c1
Cr-Commit-Position: refs/heads/master@{#413410}

Powered by Google App Engine
This is Rietveld 408576698