Closed Bug 1546604 Opened 5 years ago Closed 5 years ago

When selecting folders for offline use, checkboxes can't be set or cleared

Categories

(MailNews Core :: Account Manager, defect)

defect
Not set
normal

Tracking

(thunderbird67 fixed, thunderbird68+ fixed)

RESOLVED FIXED
Thunderbird 68.0
Tracking Status
thunderbird67 --- fixed
thunderbird68 + fixed

People

(Reporter: darktrojan, Assigned: aceman)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

In the Account Settings > Synchronisation and Storage > Advanced dialog, we've got a tree with a column of checkboxes. The checkboxes can't be checked or unchecked.

We've had to fix the message filters dialog the same way recently, so this should be an easy one.

Keywords: regression

Aceman might look at the AM.

Flags: needinfo?(acelists)

Thanks for noticing.

I can see it.
TypeError: XULTreeElement.getCellAt requires at least 2 arguments, but only 1 were passed in msgSelectOfflineFolders.js:72:42

Broken in https://hg.mozilla.org/comm-central/rev/96b12a150fe1. Only this single case did lose the second argument.

There is also another problem in the dialog, when clicking Cancel:
TypeError: this._rollbackMap is undefined msgSelectOfflineFolders.js:100:33

Is 'this' not gSelectOffline when calling the onCancel function from an event listener on "dialogcancel"?

Assignee: nobody → acelists
Status: NEW → ASSIGNED
Flags: needinfo?(acelists)
OS: Unspecified → All
Regressed by: 1518823
Hardware: Unspecified → All

(In reply to :aceman from comment #2)

There is also another problem in the dialog, when clicking Cancel:
TypeError: this._rollbackMap is undefined msgSelectOfflineFolders.js:100:33

Is 'this' not gSelectOffline when calling the onCancel function from an event listener on "dialogcancel"?

This also happens in the preferences files, e.g. when clicking OK in attachment reminder keywords dialog:
TypeError: this.keywordListBox is undefined in attachmentReminder.js:70:21

Do all the 'this' need to be replaced by the object name? Is this something new?

Flags: needinfo?(geoff)
Attached patch 1546604.patchSplinter Review

Fix only the checkbox problem, the 'this' issue seems to be more general than just this single dialog so we can discuss it elsewhere.

Attachment #9061225 - Flags: review?(jorgk)

I think you'll find this is document in those cases. Probably a screw-up from bug 1541789.

Flags: needinfo?(geoff)
Comment on attachment 9061225 [details] [diff] [review]
1546604.patch

Damn, I broke that.

Please file a bug for the issue in comment #3 / comment #5.
Attachment #9061225 - Flags: review?(jorgk)
Attachment #9061225 - Flags: review+
Attachment #9061225 - Flags: approval-comm-beta+
Component: Preferences → Account Manager
Product: Thunderbird → MailNews Core

Please file a bug for the issue in comment #3 / comment #5.

Bug 1547581.

Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/2344f942f385
fix tree.getCellAt() args in msgSelectOfflineFolders.js (broken in bug 1518823, rev 96b12a150fe1). r=jorgk DONTBUILD

Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 68.0
Version: Trunk → 66
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: