Bug 155958

Summary: When moving focus from one select element to another (iPhone) the value is committed to the newly focused element
Product: WebKit Reporter: Enrica Casucci <enrica>
Component: WebKit2Assignee: Enrica Casucci <enrica>
Status: RESOLVED FIXED    
Severity: Normal CC: thorton
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch thorton: review+

Description Enrica Casucci 2016-03-28 15:39:22 PDT
Steps to Reproduce:
1. Open https://jsfiddle.net/hstangl/pJgyu/39413/embedded/result/ on iOS Safari
2. Tap on the first select field, reading "3"
3. Directly tap on the second select field, reading "A"

Expected Results:
Safari should show the correct values for each of the select fields, without changing them without user interaction.

Actual Results:
After tapping on the first select field, the option picker comes up with "3" selected (good).
After tapping on the second select field, the option picker comes up with "A" shown as selected on the option picker (good), but "C" shown on the web page and actually being set on the form field (bad).

This happens only on iPhone where select elements use the picker wheel and the value is only committed when losing focus.
It works correctly when moving focus using the arrow keys.

rdar://problem/22738524
Comment 1 Enrica Casucci 2016-03-28 15:47:22 PDT
Created attachment 275060 [details]
Patch
Comment 2 Enrica Casucci 2016-03-29 16:35:16 PDT
Committed revision 198810.