Bug 138689 - Select Input becomes unusable when the focus shifts from select input to textarea in the same page
Summary: Select Input becomes unusable when the focus shifts from select input to text...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Forms (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.3
: P2 Normal
Assignee: Nobody
URL: http://jsbin.com/genowiruli/4/edit
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2014-11-13 00:27 PST by Dinesh
Modified: 2015-09-03 23:43 PDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dinesh 2014-11-13 00:27:31 PST
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
Comment 1 Jon Honeycutt 2015-09-03 10:40:25 PDT
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.
Comment 2 Radar WebKit Bug Importer 2015-09-03 17:48:35 PDT
<rdar://problem/22569881>