Closed Bug 1540394 Opened 6 years ago Closed 6 years ago

remove tree._columnsDirty

Categories

(Toolkit :: XUL Widgets, defect, P2)

defect

Tracking

()

RESOLVED FIXED
mozilla68
Tracking Status
firefox68 --- fixed

People

(Reporter: mkmelin, Assigned: mkmelin)

References

Details

Attachments

(1 file)

Investigating bug 1529872, we found the problem is related to tree._columnsDirty.
The problem is slightly tricky to reproduce, as it shows only in a new profile where the column ordinals have not already been restored (such as in automation). Column reordering do not work for that first run.

The way it works, in _ensureColumnOrder() tree._columnsDirty gets set to false even if this.columns were not set. And then blocked by that check from setting up the ordinals properly.

I'm not entirely sure exactly how this all hangs together, but it's clear that setting columnsDirty is causing the problem , and the Thunderbird automated test case will pass when this is removed.

I'm proposing to just drop the _columnsDirty property. Looks like an optimization attempt of some sort, but not a very useful one.

Remove the tree._columnsDirty property which is causing problems for column reordering in a fresh profile.

Priority: -- → P2

Victor and Brian, can we please move this forward.

Flags: needinfo?(vporof)
Flags: needinfo?(bgrinstead)
Type: enhancement → defect

Yes, this looked fairly safe/reasonable. Here's a talos push to make sure we're not regressing anything, as _columnsDirty looked like it was a performance optimisation.

https://treeherder.mozilla.org/#/jobs?repo=try&revision=1960c30d4e413b5c7b7532e9cfcaed26cbf2566c

Flags: needinfo?(vporof)

Comment 4 sounds fine to me

Flags: needinfo?(bgrinstead)

Apart from being partly busted, the rest looks green. So is this good to go?

Yes, I r+ed it in Phab. The patch needs proper author information before landing though. Magnus, care to update the diff or do you want me to land this manually?

Flags: needinfo?(mkmelin+mozilla)

Thanks, looks like I got the phab and lando problems sorted out.

Flags: needinfo?(mkmelin+mozilla)
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla68
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: