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
Attachment #211338 - Attachment description: Open and refresh the page → combobox
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
Product: Firefox → Core
QA Contact: general → layout.form-controls
I'm pretty sure this is a duplicate.... <select> form state restoration sucks. A lot. :(
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.
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.