When a web page have the select input and textarea in the same page, and the select is open, Shifting the focus from the select input to the textarea using textarea.focus() programatically renders the select input unusable. Tested in OSX safari/webkit Steps: 1) Goto: http://jsbin.com/genowiruli/4/edit 2) Click on the select input and keep it open 3) Wait for 7 seconds for the timeout to cause the focus to shift to textarea 4) Click on the textarea and try to change the select input 5) Notice the select input is not changing anymore
The popup menu should be dismissed when the textarea gains focus. <https://bugs.webkit.org/show_bug.cgi?id=113220> implemented that. It also added a regression test, fast/forms/select/popup-closes-on-blur.html, but the test was never enabled on the Mac. This might be because showing a popup menu on the Mac spins a nested run loop that breaks the test infrastructure.
<rdar://problem/22569881>