Fix auto-advance logic for datetime-local year field [chromium/src : main]

0 views
Skip to first unread message

Abhishek Sundriyal (Gerrit)

unread,
Jan 15, 2026, 8:53:28 AMJan 15
to chromium...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org

Abhishek Sundriyal added 1 comment

Patchset-level comments
File-level comment, Patchset 1 (Latest):
Abhishek Sundriyal . unresolved

Note: I have signed the Google CLA. AUTHORS sync may still be pending,
so I uploaded using --bypass-hooks.

Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ifeb83caf6983a9fa8bafefa38bf3a0018484e1c3
Gerrit-Change-Number: 7485927
Gerrit-PatchSet: 1
Gerrit-Owner: Abhishek Sundriyal <abhishe...@gmail.com>
Gerrit-Comment-Date: Thu, 15 Jan 2026 13:52:54 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Abhishek Sundriyal (Gerrit)

unread,
Jan 15, 2026, 9:08:12 AMJan 15
to Keishi Hattori, Mason Freed, Chromium LUCI CQ, chromium...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org
Attention needed from Abhishek Sundriyal, Keishi Hattori and Mason Freed

Abhishek Sundriyal voted Commit-Queue+1

Commit-Queue+1
Open in Gerrit

Related details

Attention is currently required from:
  • Abhishek Sundriyal
  • Keishi Hattori
  • Mason Freed
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ifeb83caf6983a9fa8bafefa38bf3a0018484e1c3
Gerrit-Change-Number: 7485927
Gerrit-PatchSet: 1
Gerrit-Owner: Abhishek Sundriyal <abhishe...@gmail.com>
Gerrit-Reviewer: Abhishek Sundriyal <abhishe...@gmail.com>
Gerrit-Reviewer: Keishi Hattori <kei...@chromium.org>
Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
Gerrit-Attention: Mason Freed <mas...@chromium.org>
Gerrit-Attention: Abhishek Sundriyal <abhishe...@gmail.com>
Gerrit-Attention: Keishi Hattori <kei...@chromium.org>
Gerrit-Comment-Date: Thu, 15 Jan 2026 14:07:38 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Keishi Hattori (Gerrit)

unread,
Jan 16, 2026, 1:02:23 AMJan 16
to Abhishek Sundriyal, Xiaocheng Hu, Mason Freed, Chromium LUCI CQ, chromium...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org
Attention needed from Abhishek Sundriyal, Mason Freed and Xiaocheng Hu

Keishi Hattori added 1 comment

Patchset-level comments
Attention is currently required from:
  • Abhishek Sundriyal
  • Mason Freed
  • Xiaocheng Hu
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ifeb83caf6983a9fa8bafefa38bf3a0018484e1c3
Gerrit-Change-Number: 7485927
Gerrit-PatchSet: 1
Gerrit-Owner: Abhishek Sundriyal <abhishe...@gmail.com>
Gerrit-Reviewer: Abhishek Sundriyal <abhishe...@gmail.com>
Gerrit-Reviewer: Keishi Hattori <kei...@chromium.org>
Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
Gerrit-Reviewer: Xiaocheng Hu <xiaoc...@chromium.org>
Gerrit-Attention: Mason Freed <mas...@chromium.org>
Gerrit-Attention: Xiaocheng Hu <xiaoc...@chromium.org>
Gerrit-Attention: Abhishek Sundriyal <abhishe...@gmail.com>
Gerrit-Comment-Date: Fri, 16 Jan 2026 06:01:46 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Abhishek Sundriyal (Gerrit)

unread,
Jan 16, 2026, 9:53:10 AMJan 16
to Xiaocheng Hu, Keishi Hattori, Mason Freed, Chromium LUCI CQ, chromium...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org
Attention needed from Keishi Hattori, Mason Freed and Xiaocheng Hu

Abhishek Sundriyal added 1 comment

Patchset-level comments
Abhishek Sundriyal

Added the requested test near the suggested file and updated the CL.
Please take another look.

Open in Gerrit

Related details

Attention is currently required from:
  • Keishi Hattori
  • Mason Freed
  • Xiaocheng Hu
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ifeb83caf6983a9fa8bafefa38bf3a0018484e1c3
Gerrit-Change-Number: 7485927
Gerrit-PatchSet: 2
Gerrit-Owner: Abhishek Sundriyal <abhishe...@gmail.com>
Gerrit-Reviewer: Abhishek Sundriyal <abhishe...@gmail.com>
Gerrit-Reviewer: Keishi Hattori <kei...@chromium.org>
Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
Gerrit-Reviewer: Xiaocheng Hu <xiaoc...@chromium.org>
Gerrit-Attention: Mason Freed <mas...@chromium.org>
Gerrit-Attention: Xiaocheng Hu <xiaoc...@chromium.org>
Gerrit-Attention: Keishi Hattori <kei...@chromium.org>
Gerrit-Comment-Date: Fri, 16 Jan 2026 14:52:35 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Keishi Hattori <kei...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

Keishi Hattori (Gerrit)

unread,
Jan 19, 2026, 1:12:29 AMJan 19
to Abhishek Sundriyal, Xiaocheng Hu, Mason Freed, Chromium LUCI CQ, chromium...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org
Attention needed from Abhishek Sundriyal, Mason Freed and Xiaocheng Hu

Keishi Hattori voted Commit-Queue+1

Commit-Queue+1
Open in Gerrit

Related details

Attention is currently required from:
  • Abhishek Sundriyal
  • Mason Freed
  • Xiaocheng Hu
Gerrit-Attention: Abhishek Sundriyal <abhishe...@gmail.com>
Gerrit-Comment-Date: Mon, 19 Jan 2026 06:12:08 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Abhishek Sundriyal (Gerrit)

unread,
Jan 19, 2026, 5:07:05 AMJan 19
to Keishi Hattori, Xiaocheng Hu, Mason Freed, Chromium LUCI CQ, chromium...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org
Attention needed from Keishi Hattori, Mason Freed and Xiaocheng Hu

Abhishek Sundriyal added 1 comment

Patchset-level comments
File-level comment, Patchset 3 (Latest):
Abhishek Sundriyal . resolved

I’ve added a test covering this case in
third_party/blink/web_tests/fast/forms/datetimelocal-multiple-fields/datetimelocal-multiple-fields-keyboard-events.html
and updated the CL accordingly.

I also added myself to the AUTHORS file as this is my first contribution.

Please take another look.

Open in Gerrit

Related details

Attention is currently required from:
  • Keishi Hattori
  • Mason Freed
  • Xiaocheng Hu
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ifeb83caf6983a9fa8bafefa38bf3a0018484e1c3
Gerrit-Change-Number: 7485927
Gerrit-PatchSet: 3
Gerrit-Owner: Abhishek Sundriyal <abhishe...@gmail.com>
Gerrit-Reviewer: Abhishek Sundriyal <abhishe...@gmail.com>
Gerrit-Reviewer: Keishi Hattori <kei...@chromium.org>
Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
Gerrit-Reviewer: Xiaocheng Hu <xiaoc...@chromium.org>
Gerrit-Attention: Mason Freed <mas...@chromium.org>
Gerrit-Attention: Xiaocheng Hu <xiaoc...@chromium.org>
Gerrit-Attention: Keishi Hattori <kei...@chromium.org>
Gerrit-Comment-Date: Mon, 19 Jan 2026 10:06:34 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Mason Freed (Gerrit)

unread,
Jan 20, 2026, 4:09:06 PMJan 20
to Abhishek Sundriyal, Keishi Hattori, Xiaocheng Hu, Chromium LUCI CQ, chromium...@chromium.org, blink-rev...@chromium.org, blink-...@chromium.org
Attention needed from Abhishek Sundriyal, Keishi Hattori and Xiaocheng Hu

Mason Freed added 4 comments

Patchset-level comments
Mason Freed . resolved

Thanks for the patch!

File AUTHORS
Line 16, Patchset 3 (Latest):Abhishek Sundriyal <abhishe...@gmail.com>
Mason Freed . resolved

Note to self: user has signed the CLA.

File third_party/blink/web_tests/fast/forms/datetimelocal-multiple-fields/datetimelocal-multiple-fields-keyboard-events.html
Line 269, Patchset 3 (Latest):keyDown('3'); // 01/01/[0203] (old bug: jumped here)
Mason Freed . unresolved

Remove this comment - no need to document old bugs. Alternatively, you could change this comment to `See crbug.com/473454959`.

Line 257, Patchset 3 (Latest):


beginTest('Year should not auto-advance early for datetime-local',
null, null, '2020-01-01T00:00');

keyDown('0'); // [00]/dd/yyyy
keyDown('1'); // 01/[dd]/yyyy
keyDown('0'); // 01/[00]/yyyy
keyDown('1'); // 01/01/[yyyy]
keyDown('2'); // 01/01/[0002]
keyDown('0'); // 01/01/[0020]
keyDown('3'); // 01/01/[0203] (old bug: jumped here)
keyDown('0'); // 01/01/[2030] (should allow full year)

shouldBeEqualToString('input.value', '2030-01-01T00:00');
Mason Freed . resolved

Ordinarily, we try to avoid modifying legacy js-tests. They're very old and crufty. Having said that, this one is quite large, so it seems unfair of me to ask you to refactor 250 lines of test, just to add your own. So this is ok as-is. (Future project, if you're interested: convert this to a testharness test.)

Open in Gerrit

Related details

Attention is currently required from:
  • Abhishek Sundriyal
  • Keishi Hattori
  • Xiaocheng Hu
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ifeb83caf6983a9fa8bafefa38bf3a0018484e1c3
Gerrit-Change-Number: 7485927
Gerrit-PatchSet: 3
Gerrit-Owner: Abhishek Sundriyal <abhishe...@gmail.com>
Gerrit-Reviewer: Abhishek Sundriyal <abhishe...@gmail.com>
Gerrit-Reviewer: Keishi Hattori <kei...@chromium.org>
Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
Gerrit-Reviewer: Xiaocheng Hu <xiaoc...@chromium.org>
Gerrit-Attention: Xiaocheng Hu <xiaoc...@chromium.org>
Gerrit-Attention: Abhishek Sundriyal <abhishe...@gmail.com>
Gerrit-Attention: Keishi Hattori <kei...@chromium.org>
Gerrit-Comment-Date: Tue, 20 Jan 2026 21:08:58 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Abhishek Sundriyal (Gerrit)

unread,
Jan 22, 2026, 9:28:24 PMJan 22
to AyeAye, blink-...@chromium.org, blink-rev...@chromium.org

Abhishek Sundriyal abandoned this change

Related details

Attention set is empty
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: abandon
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: If630d4525802e4417fc597dd27b6f1b50db68300
Gerrit-Change-Number: 7509707
Gerrit-PatchSet: 1
Gerrit-Owner: Abhishek Sundriyal <abhishe...@gmail.com>
satisfied_requirement
unsatisfied_requirement
open
diffy
Reply all
Reply to author
Forward
0 new messages