Closed Bug 2053894 Opened 4 months ago Closed 4 months ago

'Search online' checkbox in Virtual Folder properties resets to unchecked after reopening the window

Categories

(Thunderbird :: Folder and Message Lists, defect)

Thunderbird 149
defect

Tracking

(thunderbird153 fixed)

RESOLVED FIXED
154 Branch
Tracking Status
thunderbird153 --- fixed

People

(Reporter: hr, Assigned: welpy-cw)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 external file)

Steps to reproduce:

I checked "online search" in the virtual folder properties, saved and closed.
Opened the virtual folder properties again.

Actual results:

The checkbox "online search" is unchecked.

Expected results:

The checkbox "online search" should have remembered the saved setting.

I can reproduce this on daily. Unclear what errors in error console. I see several over different operations.

16:50:46.916 mail.activity: onDownloadCompleted: TypeError: can't access property "activity", this._syncInfoPerFolder.get(...) is undefined autosync.sys.mjs:384:16

Error: File closed subprocess_unix.worker.js:592:19
16:58:36.723 NotFoundError: No such JSProcessActor 'BrowserToolboxDevToolsProcess'

Security Error: Content at moz-nullprincipal:{b329d59a-4431-4b06-92e7-654ade28dba1} may not load or link to resource://gre/modules/subprocess/subprocess_unix.worker.js.

Severity: -- → S3
Status: UNCONFIRMED → NEW
Component: Untriaged → Folder and Message Lists
Ever confirmed: true
Keywords: regression
Regressed by: 2008907
Version: Thunderbird 152 → Thunderbird 149

The port of bug 2008041 (d89f225042b2) incorrectly moved the
checkbox.checked = false assignment outside of the conditional in
updateOnlineSearchState(). This caused the checkbox to be unchecked
every time the dialog opens, even when online search was available.

Restore the original logic: only clear the checkbox when there are
no online servers (i.e., when it's disabled).

Add a test that verifies the checkbox state is preserved across
dialog opens when online servers are in the search folders.

Assignee: nobody → h.w.forms
Status: NEW → ASSIGNED
Target Milestone: --- → 154 Branch

Pushed by kaie@kuix.de:
https://hg.mozilla.org/comm-central/rev/3b7bbfb694d4
Fix 'Search online' checkbox always resetting to unchecked in Virtual Folder Properties. r=mkmelin

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

Comment on attachment 9606554 [details]
Bug 2053894 - Fix 'Search online' checkbox always resetting to unchecked in Virtual Folder Properties. r=#thunderbird-reviewers

Uplift Approval Request

  • Please state case for uplift consideration and ensure bug severity is set: Regression compared to ESR 140.
  • User impact if declined: 'Search online' checkbox always unchecked regardless of the actual setting.
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Daily?: Yes
  • Has the fix been verified in Beta?: No
  • Needs manual test from QA?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Confined change, covered by tests.
  • Does the fix cause any migrations to be skipped?: No
  • String changes made/needed: None.
Attachment #9606554 - Flags: approval-comm-beta?

Comment on attachment 9606554 [details]
Bug 2053894 - Fix 'Search online' checkbox always resetting to unchecked in Virtual Folder Properties. r=#thunderbird-reviewers

[Triage Comment]
Approved for beta

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

Attachment

General

Created:
Updated:
Size: