Unable to cancel / change Adaptive Junk Mail settings
Categories
(Thunderbird :: Account Manager, defect)
Tracking
(thunderbird_esr68 affected, thunderbird_esr78 fixed, thunderbird78 affected)
People
(Reporter: admin, Assigned: khushil324)
References
(Regression)
Details
(Keywords: regression, Whiteboard: [regression:tb71?])
Attachments
(2 files, 3 obsolete files)
(deleted),
patch
|
mkmelin
:
review+
wsmwk
:
approval-comm-esr78+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
mkmelin
:
review+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:77.0) Gecko/20100101 Firefox/77.0
Steps to reproduce:
"Enable Adaptive Junk Mail Controls for this account" is ticked.
I clear the tick.
I move to another setting (e.g. Composition and Addressing).
I return to Junk settings.
Actual results:
The tick reappears.
The Do Not Automatically tick boxes remain ticked.
Expected results:
If the Enable Adaptive tick box is cleared it should remain cleared.
Updated•4 years ago
|
Comment 1•4 years ago
|
||
Maybe caused by the move of AM into a tab?
Something's wrong with https://searchfox.org/comm-central/rev/b0826913e4dd6d1913c9974fcc4dcf89a29a6f6b/mailnews/base/prefs/content/am-junk.js#159 - Khushil, please take a look.
Updated•4 years ago
|
Assignee | ||
Comment 2•4 years ago
|
||
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 3•4 years ago
|
||
Comment 4•4 years ago
|
||
Can you explain the fix?
Assignee | ||
Comment 5•4 years ago
|
||
<checkbox checked="false"> was behaving as checkbox being checked, same as HTML behavior for hidden. So we need to use setAttribute or removeAttribute. Or we can use document.getElementById("server.spamLevel.visible").ckecked = document.getElementById("server.spamLevel").value > 0;
Assignee | ||
Comment 6•4 years ago
|
||
So here, I am setting the checked attrbiute whenever there document.getElementById("server.spamLevel").value > 0
else doing nothing which is equivalent to not check.
Comment 7•4 years ago
|
||
nice catch.
And we have several SUMO reports - and some bug reports https://mzl.la/3fT2I5H - involving problems with changing settings in preferences and accounts. I wonder if it would be easy to do a code audit to find problems similar to this bug? Or maybe junk is the only one
Comment 8•4 years ago
|
||
David, is this something you have also seen in version 68? Or do you only run beta?
Assignee | ||
Comment 10•4 years ago
|
||
Magnus, it seems that XUL Checkbox are now HTML:input type="checkbox". Do you know any such changes?
Comment 11•4 years ago
|
||
Nope, still there as xul custom element: https://searchfox.org/mozilla-central/source/toolkit/content/widgets/checkbox.js#83
Assignee | ||
Comment 12•4 years ago
|
||
It is also using setAttribute and removeAttribute. But I think we should switch to: document.getElementById("server.spamLevel.visible").ckecked = document.getElementById("server.spamLevel").value > 0;
. I will change that.
Comment 13•4 years ago
|
||
Assignee | ||
Comment 14•4 years ago
|
||
Comment 15•4 years ago
|
||
Updated•4 years ago
|
Comment 16•4 years ago
|
||
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/544c18f0eed3
Fix unable to change Adaptive Junk Mail settings. r=mkmelin
Comment 17•4 years ago
|
||
Looks like this is causing test failures for comm/mail/test/browser/account/browser_abWhitelist.js
Assignee | ||
Comment 18•4 years ago
|
||
Yes, it will be quick fix. Submiting a follow up patch ASAP.
Assignee | ||
Comment 19•4 years ago
|
||
Comment 20•4 years ago
|
||
Assignee | ||
Comment 21•4 years ago
|
||
There are three address books listed in the box so it should be three only: Personal and Collected and MacOS Adress Book. If you run it locally, without both the patches, you will see the error. I don't know why we are not seeing that error on the Tree herder.
Assignee | ||
Comment 22•4 years ago
|
||
There was an unexpected number of address books - 2 == 3 - JS frame :: chrome://mochitests/content/browser/comm/mail/test/browser/account/browser_abWhitelist.js :: subtest_check_whitelist_init_and_save :: line 78
Without both the patches.
Assignee | ||
Comment 23•4 years ago
|
||
I guess there will be only two address books on tree herder insatnce. Updated the patch.
https://treeherder.mozilla.org/#/jobs?repo=try-comm-central&revision=36989d208fe27a04bfdbe52f79fac88ac43a8900&selectedTaskRun=Yt5Hwk4lTpGA59sxMTjDlQ.0
Comment 24•4 years ago
|
||
Updated•4 years ago
|
Comment 25•4 years ago
|
||
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/c122925c73bc
Follow-up: fix test failure in browser_abWhitelist.js. r=mkmelin
Comment hidden (Intermittent Failures Robot) |
Assignee | ||
Comment 28•4 years ago
|
||
I think the issue was regressed by mozilla-central changes, not ours, mainly de-xbl of checkbox element.
Comment 29•4 years ago
|
||
Thanks. So in the m-c remove-XBL period of time, mostly Nov'19 to Jan'20 - so for thunderbird beta 70-72 period. Which matches my bug 1619046 which I think was already happening for several weeks before I filed the bug.
I can verify that the setting now sticks. I wonder if it also helps whatever was causing Bug 1529443 reported in version 60 - "Enable adaptive junk mail controls for this account" checkbox does not maintain state (tristate?)
Comment 31•4 years ago
|
||
And version 68 reported Bug 1607613 - Tools - Account Settings - Junk Settings - Select and Toggle Broken
Assignee | ||
Comment 32•4 years ago
|
||
It gets regressed here: Bug 1475817. The changes I made and lines causing the problems were from this bug. I don't why it's working in ESR68.
Assignee | ||
Comment 33•4 years ago
|
||
Comment 34•4 years ago
|
||
Yeah, that's odd. If the cause is bug 1475817 then version 68 should be affected.
Comment 35•4 years ago
|
||
Comment on attachment 9159164 [details] [diff] [review]
Bug-1646529_fix-spam-checkbox-2.patch
[Approval Request Comment]
Pretty safe regression fix.
Comment 36•4 years ago
|
||
Comment on attachment 9159164 [details] [diff] [review]
Bug-1646529_fix-spam-checkbox-2.patch
[Triage Comment]
Approved for beta
Approved for esr78
Comment 37•4 years ago
|
||
bugherder uplift |
Comment 39•4 years ago
|
||
It's been on what's beta beta since long (landed 2 months ago). I had missed the time when requesting approvals.
Updated•4 years ago
|
Updated•4 years ago
|
Comment 40•4 years ago
|
||
Sorry, missed that, but then, I can't clear the flag any more :-(
Description
•