Open Bug 326607 Opened 19 years ago Updated 2 years ago

wrong selection of an item in a combobox (with a repeated value)

Categories

(Core :: Layout: Form Controls, defect)

x86
Windows XP
defect

Tracking

()

People

(Reporter: easico, Unassigned)

Details

(Keywords: testcase, Whiteboard: DUPEME)

Attachments

(2 files, 2 obsolete files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20060209 Firefox/1.5
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9a1) Gecko/20060209 Firefox/1.6a1

Firefox is selecting the second value (when it is repeated) of the combobox, after refreshing the page

Reproducible: Always

Steps to Reproduce:
1. Open the html file
2. Refresh the page

Actual Results:  
It selects the second value

Expected Results:  
Select the first one
Attached file combobox
Attachment #211338 - Attachment description: Open and refresh the page → combobox
Version: unspecified → Trunk
Confirmed. Also happens in Mozilla1.7.
Opera and IE6 always show the first item, also after the refresh.
Status: UNCONFIRMED → NEW
Component: General → Layout: Form Controls
Ever confirmed: true
Keywords: testcase
Product: Firefox → Core
QA Contact: general → layout.form-controls
I'm pretty sure this is a duplicate.... <select> form state restoration sucks.  A lot.  :(
Whiteboard: DUPEME
Reproduced using:
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0
Mozilla/5.0 (X11; Linux x86_64; rv:10.0.4) Gecko/20100101 Firefox/10.0.4 Iceweasel/10.0.4

There is another test case here:
http://labs.silverorange.com/files/firefox-select-bug/
Forgot to mention that there is an additional issue in this test case (http://labs.silverorange.com/files/firefox-select-bug/). If there are two options with the same name and the second option is marked as disabled it will still become selected on refresh.
Charles, could you attach that testcase to the bug? (by using the "Add an attachment" link). That way, it doesn't get lost. Thanks.
Attached file testcase (obsolete) —
Attached file testcase (obsolete) —
Attachment #620268 - Attachment is obsolete: true
Attached file testcase
Attachment #620269 - Attachment is obsolete: true
I've tried adding the attachment three times, once selecting auto-detect the mime-type and the other two setting the mime-type to text/html. For some strange reason it is also setting the attachment's mime-type to text/plain. Perhaps someone with a higher power can update it. Sorry about that.
Attachment #620270 - Attachment mime type: text/plain → text/html
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: