Closed Bug 1986289 Opened 6 months ago Closed 6 months ago

enter key in message filter edit closes the dialog - allows accidental catch-all rules

Categories

(Thunderbird :: Filters, defect)

defect

Tracking

(thunderbird_esr140 affected)

RESOLVED FIXED
144 Branch
Tracking Status
thunderbird_esr140 --- affected

People

(Reporter: gardner, Assigned: welpy-cw)

References

(Regression)

Details

(Keywords: regression, triaged, Whiteboard: [filtermgmt][datalossy])

Attachments

(1 file)

Steps to reproduce:

While adding rules to a filter I added a new "From, ends with" rule, typed the end of the email address in the provided field and pressed the Enter key. This adds another rule of the same type with a blank field(!) then immediately also closes the filter editor.
This filter now matches every single email, because technically, any sender email ends with an empty string. Obviously, this also applies to "starts with" rules.

Actual results:

Running this faulty filter cleared out my entire spam folder, permanently removing the emails. Not a big deal obviously, but clearly not what I intended.

Expected results:

Thunderbird should've detected a "starts with" / "ends with" rule with a blank field, concluding there's a 99.99% chance this is not what the user intended, and warned about it.

The real problem here is closing the dialog with the enter key. Aceman fixed this problem 13 years ago in Bug 49474 - Filter editor UI: Enter key after entering criteria closes dialog.

So apparently this has regressed. No idea when.

Severity: -- → S3
Status: UNCONFIRMED → NEW
Type: enhancement → defect
Ever confirmed: true
Flags: needinfo?(alice0775)
Summary: message filtering allows accidental catch-all rules → enter key in message filter edit closes the dialog - allows accidental catch-all rules
Whiteboard: [filtermgmt]
Flags: needinfo?(alice0775)
Version: Thunderbird 140 → 68
Regressed by: 1534345
Whiteboard: [filtermgmt] → [filtermgmt][datalossy]
Assignee: nobody → h.w.forms
Status: NEW → ASSIGNED
Target Milestone: --- → 144 Branch

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/037434bf26d8
Do not close Filter Rules dialog by Return key after entering search value. r=mkmelin

Status: ASSIGNED → RESOLVED
Closed: 6 months ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: