Closed Bug 1499635 Opened 5 years ago Closed 2 years ago

Support step attribute for time and datetime-local inputs (for second precision)


(GeckoView :: General, defect, P3)



(firefox63 wontfix, firefox64 wontfix, firefox65 wontfix, firefox66 wontfix, firefox100 wontfix, firefox101 wontfix, firefox102 fixed)

102 Branch
Tracking Status
firefox63 --- wontfix
firefox64 --- wontfix
firefox65 --- wontfix
firefox66 --- wontfix
firefox100 --- wontfix
firefox101 --- wontfix
firefox102 --- fixed


(Reporter: robwu, Assigned: m_kato)




(1 file)

datetime-local and time inputs default to a precision of one minute. The step attribute can be used to change the precision to seconds (and even milliseconds...), but the UI does not offer a way to input seconds.

In bug 1498787, this bug was fixed on Fennec (for seconds only, not for milliseconds). In GeckoView, the bug is still present, as it uses different code to show UI for date/time input:
Product: Firefox for Android → GeckoView
Assignee: nobody → m_kato
Marking fix-optional for 65 and 66 so that these already triaged issues don't show up repeatedly in weekly regression triage. Happy to take a patch in nightly.

We should add stepValue to DateTimePrompt to support step attribute such as
<input type="date" step="10"> etc in GeckoView.

Also, we don't have any tests for max/min attribute, so we should add it too.

Pushed by
Add step attribute value to DateTimePrompt. r=geckoview-reviewers,agi,calu
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 102 Branch

This is a longstanding bug so no need to uplift this fix to Beta 101.

You need to log in before you can comment on or make changes to this bug.