Bug 115475

Summary: REGRESSION(r147548): Broken comboboxes
Product: WebKit Reporter: Sergio Villar Senin <svillar>
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Critical CC: cgarcia, csaavedra, gustavo, mrobinson, svillar
Priority: P2 Keywords: Gtk
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Linux   
Attachments:
Description Flags
Patch gustavo: review+

Description Sergio Villar Senin 2013-05-01 07:52:40 PDT
Comboboxes are not working at all in WebKitGtk+, neither for WK1 not WK2. The popup window is not displayed, and the combobox does not even work with the keyboard.
Comment 1 Carlos Garcia Campos 2013-05-14 03:55:53 PDT
I don't think this is specific to GTK. The problem is that r147548 made the popup to be closed when a blur event is received. Right before showing the popup the input element is focused, so that after the the popup is shown the focus event is emitted and the event handler is called again hiding the popup. I guess this doesn't happen in other platforms because they run a nested mainloop for popups. A possible solution would be to check that the current element has actually lost the focus before hiding the popup.
Comment 2 Carlos Garcia Campos 2013-05-14 04:01:00 PDT
Created attachment 201695 [details]
Patch
Comment 3 Carlos Garcia Campos 2013-05-14 23:42:06 PDT
Committed r150102: <http://trac.webkit.org/changeset/150102>