Open Bug 413266 Opened 12 years ago Updated 10 years ago

XUL tree column sort selects row when none selected

Categories

(Core :: General, defect)

1.9.2 Branch
x86
Windows XP
defect
Not set

Tracking

()

UNCONFIRMED

People

(Reporter: wa84it, Unassigned)

Details

(Keywords: testcase)

Attachments

(1 file)

1.20 KB, application/vnd.mozilla.xul+xml
Details
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9b2) Gecko/2007121120 Firefox/3.0b2
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9b2) Gecko/2007121120 Firefox/3.0b2

This bug is important because XUL does not retain the row selection when a column is sorted(bug#50220, bug#244398).  So code must be written to do this.

With seltype="single", the easiest method seems to be to look at tree.currentIndex, and use this as an input toward keeping the same row selected.  Unfortunately, when tree.currentIndex is -1, Firefox(but not K-Meleon or SeaMonkey) changes tree.currentIndex to zero before calling tree.view.cycleHeader().

Reproducible: Always

Steps to Reproduce:
1.see testcase
2.
3.
Actual Results:  
tree.currentIndex = 0

Expected Results:  
tree.currentIndex = -1
Attached file testcase
Attachment #298160 - Attachment description: column sort selects row → testcase
Keywords: testcase
Does this still happen in firefox 3.6.6 or later in a fresh profile?
Whiteboard: [CLOSEME 2010-07-30]
Version: unspecified → 3.0 Branch
Still happens for me in FF3.6.6 with fresh profile.
Product: Firefox → Core
QA Contact: general → general
Whiteboard: [CLOSEME 2010-07-30]
Version: 3.0 Branch → 1.9.2 Branch
You need to log in before you can comment on or make changes to this bug.