Closed Bug 1817785 Opened 3 years ago Closed 2 years ago

Unable to change the month in the Datepicker panel if there already is a date set

Categories

(Core :: Layout: Form Controls, defect)

Desktop
All
defect

Tracking

()

VERIFIED FIXED
115 Branch
Tracking Status
firefox-esr102 --- disabled
firefox110 --- wontfix
firefox111 --- wontfix
firefox112 --- wontfix
firefox113 --- wontfix
firefox114 --- wontfix
firefox115 --- verified

People

(Reporter: rdoghi, Assigned: ayeddi)

References

(Blocks 2 open bugs, Regression)

Details

(Keywords: regression)

Attachments

(4 files)

Attached video datepicker1.mp4

Found in

  • Nightly 112.0a1 (2023-02-20)

Affected versions

  • Beta 111.0b3
  • Release 110

Affected platforms

  • ALL

Steps to reproduce

  1. Reach data:text/html,<input type='datetime-local'>
  2. Open the Datepicker from the Calendar button and select any date.
  3. Reopen the Calendar button and use the arrow keys up or down in order to reach a different month.
  4. Use tab to reach the Top Arrows and select them using space in order to change the month.

Expected result

  • The Month from the calendar panel should change using the Arrows at the top of the Calendar or when using the keyboard arrows.

Actual result

  • Unable to change the months if the user already selected a date.

Regression range
15:07.80 INFO: Last good revision: ecda109fed990c5e8a581ef1d5992bb63a5be749
15:07.80 INFO: First bad revision: 672458dd68513bedba20944a5b4c30e99d0f641e
15:07.80 INFO: Pushlog:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=ecda109fed990c5e8a581ef1d5992bb63a5be749&tochange=672458dd68513bedba20944a5b4c30e99d0f641e

Hi Anna, it seems that Bug 1806823 is whats causing this issue, can you please take a look ?

Flags: needinfo?(ayeddi)
Regressed by: 1806823

:ayeddi, since you are the author of the regressor, bug 1806823, could you take a look?

For more information, please visit auto_nag documentation.

Flags: needinfo?(ayeddi)
Attached file 1817785-test-case.html

Adding a test case

I tried to poke around but couldn't find an apparent issue, so I will work on this bug when I'm back from the leave

Assignee: nobody → ayeddi
Flags: needinfo?(ayeddi)

As we want to keep communicating to the parent that the date picker is changed even when a calendar is updated without any new selection, but we want to keep the current selection and the input value until the user changes the selection, the new flag would communicate to the parent that there is no need to update a selection for a date picker on <input type=datetime-local> and <input type=date>. In the future it will be possible to be used by a time picker on <input type=time> as well, if needed.

TODO: Add tests

Attachment #9332483 - Attachment description: WIP: Bug 1817785 - Adding a flag for DateTimePanel change message when no selection is made. r?Jamie,emilio,kcochrane → Bug 1817785 - Adding a flag for DateTimePanel change message when no selection is made. r?Jamie,emilio,kcochrane
Attachment #9332483 - Attachment description: Bug 1817785 - Adding a flag for DateTimePanel change message when no selection is made. r?Jamie,emilio,kcochrane → Bug 1817785 - Updating a logic for a DateTimePanel's change of selection message. r?Jamie,emilio,kcochrane

With the Next/Prev button keyboard navigation being fixed in the previous patch (D177550), running datepicker tests with --verify discovered an intermittent toolkit/content/tests/browser/datetime/browser_datetime_datepicker.js failure likely due to the fast speed of the picker re-rendering while machine tested that took minor improvements to have extra state checks to resolve it.

Depends on D177550

Attachment #9332483 - Attachment description: Bug 1817785 - Updating a logic for a DateTimePanel's change of selection message. r?Jamie,emilio,kcochrane → Bug 1817785 - Updating a logic for a DateTimePanel's change of selection message. r=Jamie,emilio,kcochrane
Pushed by ayeddi@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/05dde90fd243 Updating a logic for a DateTimePanel's change of selection message. r=Jamie,emilio,kcochrane,mconley https://hg.mozilla.org/integration/autoland/rev/76d6593441da Update browser_datetime_datepicker test to have extra fail-proof checks. r=Jamie,emilio,kcochrane
Regressions: 1833988
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 115 Branch

This issue is verified as fixed in our latest Nightly build 115.0a1 (2023-05-21). I will update the flags for beta and release.

Flags: in-testsuite+

Updating the main status flag.

Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: