Open Bug 458477 Opened 16 years ago Updated 2 years ago

two items in Applications prefpane switch places when one is clicked on

Categories

(Firefox :: File Handling, defect)

x86
All
defect

Tracking

()

People

(Reporter: myk, Unassigned)

References

()

Details

(Keywords: polish, Whiteboard: [polish-easy] [polish-interactive][polish-p2])

When the Applications prefpane shows only two items (f.e. as the result of a search), clicking an item sometimes switches the two items. I can reproduce this consistently on Mac OS X via these steps: 1. open the Applications prefpane; 2. enter a search term that finds two items (f.e. "aac)"), neither of which are currently selected; 3. click on the first item. Expected results: the first item becomes selected and stays in place. Actual results: the first item becomes selected, and the items switch places. Other behaviors that aren't as consistent include: 1. the items switch places every time I click on the first item (I see this a lot, but sometimes it happens for a while and then stops happening); 2. the items switch places every time I click on the *second* item (I see this occasionally); 3. the items switch places on Linux (I see this, but it's harder to reproduce). Here's a screencast that shows the problem: http://www.screencast.com/users/mykmelez/folders/Jing/media/ba1e7dbd-0b4a-490d-b9a0-d231d33d3ef8
Keywords: polish
Whiteboard: [polish-easy] [polish-interactive]
I poked at this a bit... Adding some logging to applications.js / _rebuildView() seems to indicate that things start going wrong when the list is filtered (before any item is clicked). I'll see it append visibleType.type "foo" and then "bar", but the displayed list shows "bar" before "foo". The position switching is probably the view catching up to the model...
I can't reproduce this.
I can reproduce. Upon further investigation, it also looks like the sort isn't being applied to filtered results (when 2 are present). It's made worse (and furtherly repeatable) when you switch places and try to resort. Sometimes it stops the switching action, other times it keeps it going. To make it stop switching, switch them so that when you change sort order they are sorted properly. I'm trying to get some polish bugs done, so I'll see if I can figure this out.
This bug's priority relative to the set of other polish bugs is: P2 - Polish issue that is in a secondary interface, occasionally encountered, and is easily identifiable. Applications prefpane is secondary UI, but this sounds like a clearly noticeable problem.
Whiteboard: [polish-easy] [polish-interactive] → [polish-easy] [polish-interactive][polish-p2]
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.