Closed Bug 1660917 Opened 4 years ago Closed 4 years ago

Disabled filters showing as enabled in the GUI

Categories

(Thunderbird :: Filters, defect)

defect

Tracking

(thunderbird_esr78+ fixed, thunderbird81 fixed)

RESOLVED FIXED
82 Branch
Tracking Status
thunderbird_esr78 + fixed
thunderbird81 --- fixed

People

(Reporter: bugtime.monsters.kitchengoblin74, Assigned: Paenglab)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:79.0) Gecko/20100101 Firefox/79.0

Steps to reproduce:

I created email filters, as detailed in my question at https://support.mozilla.org/en-US/questions/1299994

I'm on a Mac.

Actual results:

Some of my email filters did not run. Initially I thought they were running in the wrong order (incorrect). On opening the msgFilterRules.dat to investigate, I found that some had enabled="no" set. In the GUI, all the filters had their checkboxes checked.

Expected results:

In the Message Filters dialog, filters that have enabled="no" should not have their Enabled checkbox checked; all filters with enabled="yes" should have their Enabled checkbox checked.

I can confirm clicking the checkbox next to a filter and reopening Tools | Message Filters, the checkboxes for the enabled column do not stick.
I wonder when this broke. Alice, are you able to get a regression range?

Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(alice0775)

That's surprising...

I only tested enabling/disabling the filter without re-open the dialog. Disabling removes the checked attribute completely but when we re-open the window it sets checked="false". Now we are on the safe side with explicitly check for checked="true".

Assignee: nobody → richard.marti
Status: NEW → ASSIGNED
Attachment #9172102 - Flags: review?(mkmelin+mozilla)
Comment on attachment 9172102 [details] [diff] [review] 1660917-checkbox-fix.patch Review of attachment 9172102 [details] [diff] [review]: ----------------------------------------------------------------- Seems to work, thx! r=mkmelin
Attachment #9172102 - Flags: review?(mkmelin+mozilla) → review+
Target Milestone: --- → 82 Branch

Comment on attachment 9172102 [details] [diff] [review]
1660917-checkbox-fix.patch

[Approval Request Comment]
Regression caused by (bug #): bug 1650791
User impact if declined: No feedback when filter is disabled
Testing completed (on c-c, etc.): soon on c-c
Risk to taking this patch (and alternatives if risky): low

Attachment #9172102 - Flags: approval-comm-esr78?
Attachment #9172102 - Flags: approval-comm-beta?

Comment on attachment 9172102 [details] [diff] [review]
1660917-checkbox-fix.patch

[Triage Comment]
approved for beta

Attachment #9172102 - Flags: approval-comm-beta? → approval-comm-beta+

Pushed by thunderbird@calypsoblue.org:
https://hg.mozilla.org/comm-central/rev/e772a3dbdfc6
Set on checkboxes an explicit checked="true" to not apply on checked="false". r=mkmelin

Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED

Comment on attachment 9172102 [details] [diff] [review]
1660917-checkbox-fix.patch

[Triage Comment]
Approved for esr78

Attachment #9172102 - Flags: approval-comm-esr78? → approval-comm-esr78+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: