Closed Bug 2066562 Opened 1 month ago Closed 25 days ago

Support Multiple Custom Wallpapers: Allow deleting a saved custom wallpaper

Categories

(Firefox :: New Tab Page, task)

task
Points:
3

Tracking

()

RESOLVED FIXED
157 Branch
Tracking Status
firefox157 --- fixed

People

(Reporter: dgrant, Assigned: dgrant, NeedInfo)

References

(Blocks 1 open bug)

Details

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

Attachments

(1 file)

Adds a way to remove a saved wallpaper.

The "Your images" folder has no way to remove anything, so a saved wallpaper is kept forever once it is added.

This patch gives each saved image its own remove button, revealed on hover or keyboard focus the same way the Stocks watchlist does it, plus a confirmation before anything goes. Removing takes the image, its thumbnail and its details file together. Removing the one currently applied also drops the copy in the wallpaper folder and clears the selection, so the page falls back rather than pointing at a file that is gone.

Numbers are never reused. Removing image 2 leaves image 3 called image 3. The next image added is 5 rather than filling the gap, so what a screen reader reads for a picture does not change under someone.

Off by default behind newtabWallpapers.customWallpaper.library.enabled, along with the folder itself.

Flags: needinfo?(hashir2781)
Attachment #9634229 - Attachment description: WIP: Bug 2066562 - Multi-Custom Wallpapers: Allow deleting a saved custom wallpaper r?#home-newtab-reviewers → Bug 2066562 - Multi-Custom Wallpapers: Allow deleting a saved custom wallpaper r?#home-newtab-reviewers
Status: NEW → RESOLVED
Closed: 25 days ago
Resolution: --- → FIXED
Target Milestone: --- → 157 Branch
QA Whiteboard: [qa-triage-done-c158/b157]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: