Closed Bug 1675212 Opened 4 years ago Closed 4 months ago

By accidentally pressing the `Delete` key for a little too long, more messages than expected will be deleted.

Categories

(Thunderbird :: Folder and Message Lists, defect, P1)

Tracking

(thunderbird_esr115 wontfix, thunderbird128 verified)

RESOLVED FIXED
128 Branch
Tracking Status
thunderbird_esr115 --- wontfix
thunderbird128 --- verified

People

(Reporter: albertfora, Assigned: vineet)

References

(Blocks 1 open bug, Regressed 1 open bug)

Details

(4 keywords)

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.183 Safari/537.36

Steps to reproduce:

Press the delete button a little too long

Actual results:

unwanted emails are deleted.

Expected results:

Only one email should be deleted

Which Delete button?

The one in the message header, one you placed in the Mail Toolbar from the Customize widget, or the Delete key on the keyboard.

I have to release the mouse button to delete a message using the first two methods.

Flags: needinfo?(albertfora)

The Delete key on the keyboard. This is the button I always use for this. Pressing it a little bit too long and many mails will be deleted, what is unwanted.

Flags: needinfo?(albertfora)

Thanks for the clarification.

Pressing the Delete key on the keyboard for too long does delete multiple emails in succession as it does for any file in an application and the operating systems File manager.

I don't think there is anything here for Thunderbird to fix.

Summary: By accidentally pressing the delete button for too long, unwanted emails will be deleted. → By accidentally pressing the keyboard delete key for too long, unwanted emails will be deleted.
See Also: → 1705824

(In reply to WaltS48 [:walts48] from comment #3)

Hi Walt, thanks for looking into this bug and all your help with triage!

Pressing the Delete key on the keyboard for too long does delete multiple emails in succession as it does for any file in an application and the operating systems File manager.

I've rarely seen "files in an application" other than file managers. I don't recall ever deleting items which are not part of text with long keypress.
Windows 10 File Explorer does not allow deleting multiple files sequentially by selecting the first file and holding down Delete key. Instead, the next file will be focused, but not selected - which in turn prevents the deletion.
That looks like a safe and reasonable behaviour to me - uncontrolled deletions by holding down a deletion key may work for text and small items like recipient pills (which are text-ish, and typically easy to restore), but not for bigger and more important items like entire files or messages (harder or even impossible to restore). Instead, to delete multiple items safely, just select them first and then press Delete.

I don't think there is anything here for Thunderbird to fix.

Looking at some similar bugs on record, I do think we should fix this in terms of ux-error-prevention - most actions which are repeated in an uncontrolled manner do not really make sense, and we can even run into issues as we're not expecting that (see A shortcut bug below).

Bug 1705824 - Holding down the A key for repeated archiving results in lots of extra blank messages in Archive, and corruption of Undo (POP3 only)
Bug 622305 - Holding one second Ctrl+O (Open Message) or Ctrl+N (New message) creates 30+ duplicate tabs or composition windows (too long, multiple, a lot of, many...)

Severity: -- → S3
Status: UNCONFIRMED → NEW
Component: Untriaged → Folder and Message Lists
Ever confirmed: true
Priority: -- → P3
See Also: → 622305
Summary: By accidentally pressing the keyboard delete key for too long, unwanted emails will be deleted. → By accidentally pressing the `Delete` key for a little too long, more messages than expected will be deleted.

This may or may not be a good-first-bug (delete command flavors are pretty nested, but maybe we can just catch repeated command event somewhere).

Keywords: good-first-bug
See Also: → 620853
Type: enhancement → defect
Blocks: longkeypress

Can repro in TB 115 and TB 128.0a1 (2024-05-17) (64-bit) @ Win10-64bit
and agree with Thomas D. This is dangerous.

Keywords: dataloss
OS: Unspecified → Windows 10
Hardware: Unspecified → x86_64

Trying to get this into next ESR.
Vineet, can you take care of this?
We can use the event.repeat condition to check if the user is pressing Delete and holding it down.

Assignee: nobody → vineet
Priority: P3 → P1
Status: NEW → ASSIGNED
OS: Windows 10 → All
Hardware: x86_64 → All
Attachment #9405636 - Attachment description: Bug 1675212 - Prevent deleting multiple messages by holding backspace. r=#thunderbird-reviewers → Bug 1675212 - Prevent deleting multiple messages when holding delete. r=#thunderbird-reviewers
Target Milestone: --- → 128 Branch

Pushed by vineet@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/e915d642bded
Prevent deleting multiple messages when holding delete. r=mkmelin

Status: ASSIGNED → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Pushed by martin@humanoids.be: https://hg.mozilla.org/comm-central/rev/539f11da1660 Followup: fix linting issues. rs=lint

Hello,
Managed to reproduce this issue with the affected build from 2020-06-11 78.0b1(20200611220825) using Windows 10.
Confirming this issue as verified fixed on 128.0b1(20240610221456) using Windows 10.

Keywords: access
Regressions: 1911946
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: