Closed Bug 1219825 Opened 9 years ago Closed 4 years ago

Combobox internal state is inconsistent when set via javascript

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: jsproch, Unassigned)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36

Steps to reproduce:

Go to fiddle: https://jsfiddle.net/som2so5u/
Click reset
press tab to focus on the combobox
use arrow keys to select banana
use shift+tab to go back to the reset button
press spacebar to press the button and activate the hard reset
press tab to go back to the combobox
press down arrow


Actual results:

Combobox value went from "Apple" to "Candy" without passing through "Banana".

I also have unconfirmed (but believable) reports that prior to hitting the down arrow, screenreaders identify the combobox value as "Banana", despite the fact that it visually shows "Apple"


Expected results:

Combobox should go from Apple to Banana.
Discovered in: https://github.com/facebook/react/issues/5315
Duplicate of bug 1203668?
Component: Untriaged → DOM: Core & HTML
Product: Firefox → Core
Attached file reduced testcase.html
Occurs on Nightly 44.0a1, Firefox 41.0.2 and 38.3.0esr.
> Duplicate of bug 1203668?

No, since this testcase never sets .value.

Mats, you've looked into these bits before right?  Do you have time for this?
Flags: needinfo?(mats)
I had originally filed this against React. Please let me know if there is any additional feedback that I can provide or testing that I can perform.
(In reply to Boris Zbarsky [:bz] from comment #4)
> Mats, you've looked into these bits before right?  Do you have time for this?

Yes.  No, not anytime soon, sorry.  Maybe in Q1.
Flags: needinfo?(mats)

Just retested this, and the testcase works correctly now.

Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: