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

NEW
Unassigned

Status

()

Core
Layout: Form Controls
12 years ago
6 years ago

People

(Reporter: Otávio Augusto, Unassigned)

Tracking

({testcase})

Trunk
x86
Windows XP
testcase
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: DUPEME)

Attachments

(2 attachments, 2 obsolete attachments)

130 bytes, text/html
Details
804 bytes, text/html
Details
(Reporter)

Description

12 years ago
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
(Reporter)

Comment 1

12 years ago
Created attachment 211338 [details]
combobox
(Reporter)

Updated

12 years ago
Attachment #211338 - Attachment description: Open and refresh the page → combobox
(Reporter)

Updated

12 years ago
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

Comment 4

6 years ago
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/

Comment 5

6 years ago
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.

Comment 7

6 years ago
Created attachment 620268 [details]
testcase

Comment 8

6 years ago
Created attachment 620269 [details]
testcase
Attachment #620268 - Attachment is obsolete: true

Comment 9

6 years ago
Created attachment 620270 [details]
testcase
Attachment #620269 - Attachment is obsolete: true

Comment 10

6 years ago
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
You need to log in before you can comment on or make changes to this bug.