Closed Bug 2070284 Opened 27 days ago Closed 25 days ago

The customization panel should reset when closed

Categories

(Firefox :: New Tab Page, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
157 Branch
Tracking Status
firefox157 --- fixed

People

(Reporter: maxx, Assigned: nina-py)

References

Details

(Whiteboard: [hnt][hnt-wattle])

Attachments

(1 file)

STR:

  1. Open new tab
  2. Open customization panel
  3. Expected: The panel should open
  4. Select a wallpaper category to go to a subpanel
  5. Click off of the panel entirely (anywhere else on the page)
  6. Expected: The panel should close
  7. Open the panel again (click the pencil icon)
  8. Expected: The panel should be open to the root panel (showing themes, wallpapers, toggles, etc)
  9. Actual: The panel is still in the wallpaper category subpanel
Whiteboard: [hnt][hnt-wattle]
Assignee: nobody → npypchenko
Status: NEW → ASSIGNED
Blocks: 2066344

This fix is relevant for both the wallpapers and themes subpanels - both need to reset and not reopen on the next opening of the Customize panel.

Fix the wallpaper category and themes subpanels staying open across
closing and reopening the Customize panel. Bug 2037541 removed the
reset that closed the wallpaper subpanel when the panel closed, and the
themes subpanel added in Bug 2056304 never had one.

Rather than reinstate the old code, this makes a modest refactor. The
wallpaper subpanel's open state moves into Base next to the other three
subpanels, so all four are managed the same way and one method closes
them all once the dialog has finished closing.

New test coverage is in Jest; the two Enzyme files were only adjusted to
keep passing.

Status: ASSIGNED → RESOLVED
Closed: 25 days ago
Resolution: --- → FIXED
Target Milestone: --- → 157 Branch
QA Whiteboard: [qa-triage-done-c158/b157][qa-ver-needed-c158/b157]
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: