Bug 130525

Summary: Select element doesn't fire correct events when mouse is dragged away.
Product: WebKit Reporter: rlobkovsky
Component: UI EventsAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Windows 7   
Attachments:
Description Flags
Test case none

Description rlobkovsky 2014-03-20 11:52:13 PDT
Created attachment 227311 [details]
Test case

On select elements that look like list boxes (i.e. not dropdowns -- although I haven't checked), clicking on a previously-unselected option produces the following event sequence: mousedown, mouseup, change, click (I'm omitting others such as mousemove). This is what's expected, and what other browsers do. However, if you click on a previously-unselected option and drag the mouse outside the select element, and then let go, you only get mousedown. In both Firefox and IE, you get mousedown, mouseup, change.

Steps to reproduce:
1) Open the attached test case.
2) Click on an unselected option in the list box and without letting go, drag the mouse outside the list box.
3) Let go the mouse button.

Actual result: below the list box, you only see "mousedown".
Expected result: you should see "mousedown", "mouseup", "change".

Build: Chrome Windows 33.0.1750.154 (Official Build 257193) m
WebKit: 537.36 (@169182)