<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>130525</bug_id>
          
          <creation_ts>2014-03-20 11:52:13 -0700</creation_ts>
          <short_desc>Select element doesn&apos;t fire correct events when mouse is dragged away.</short_desc>
          <delta_ts>2014-03-20 11:52:13 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>UI Events</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows 7</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>rlobkovsky</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>992633</commentid>
    <comment_count>0</comment_count>
      <attachid>227311</attachid>
    <who name="">rlobkovsky</who>
    <bug_when>2014-03-20 11:52:13 -0700</bug_when>
    <thetext>Created attachment 227311
Test case

On select elements that look like list boxes (i.e. not dropdowns -- although I haven&apos;t checked), clicking on a previously-unselected option produces the following event sequence: mousedown, mouseup, change, click (I&apos;m omitting others such as mousemove). This is what&apos;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 &quot;mousedown&quot;.
Expected result: you should see &quot;mousedown&quot;, &quot;mouseup&quot;, &quot;change&quot;.

Build: Chrome Windows 33.0.1750.154 (Official Build 257193) m
WebKit: 537.36 (@169182)</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>227311</attachid>
            <date>2014-03-20 11:52:13 -0700</date>
            <delta_ts>2014-03-20 11:52:13 -0700</delta_ts>
            <desc>Test case</desc>
            <filename>test.html</filename>
            <type>text/html</type>
            <size>936</size>
            <attacher>rlobkovsky</attacher>
            
              <data encoding="base64">PGh0bWw+CiAgPGJvZHk+CiAgICA8c2VsZWN0IHNpemU9IjUiIG9uY2xpY2s9Im9uVGVzdFNlbGVj
dENsaWNrKCk7IiBvbmNoYW5nZT0ib25UZXN0U2VsZWN0Q2hhbmdlKCk7IiBvbm1vdXNldXA9Im9u
VGVzdFNlbGVjdE1vdXNlVXAoKTsiIG9ubW91c2Vkb3duPSJvblRlc3RTZWxlY3RNb3VzZURvd24o
KTsiPgogICAgICA8b3B0aW9uPlRleHQxPC9vcHRpb24+CiAgICAgIDxvcHRpb24+VGV4dDI8L29w
dGlvbj4KICAgICAgPG9wdGlvbj5UZXh0Mzwvb3B0aW9uPgogICAgPC9zZWxlY3Q+CiAgICA8ZGl2
IGlkPSJsb2cxIiBzdHlsZT0iaGVpZ2h0OjQwMHB4Ij4KICAgIDwvZGl2PgogICAgPHNjcmlwdD4K
ICAgICAgZnVuY3Rpb24gb25UZXN0U2VsZWN0Q2xpY2soKSB7CiAgICAgICAgdmFyIGVsZW0gPSBk
b2N1bWVudC5nZXRFbGVtZW50QnlJZCgnbG9nMScpOwogICAgICAgIGVsZW0uaW5uZXJIVE1MICs9
ICdjbGljazwvYnI+JzsKICAgICAgfQogICAgICBmdW5jdGlvbiBvblRlc3RTZWxlY3RDaGFuZ2Uo
KSB7CiAgICAgICAgdmFyIGVsZW0gPSBkb2N1bWVudC5nZXRFbGVtZW50QnlJZCgnbG9nMScpOwog
ICAgICAgIGVsZW0uaW5uZXJIVE1MICs9ICdjaGFuZ2U8L2JyPic7CiAgICAgIH0KICAgICAgZnVu
Y3Rpb24gb25UZXN0U2VsZWN0TW91c2VVcCgpIHsKICAgICAgICB2YXIgZWxlbSA9IGRvY3VtZW50
LmdldEVsZW1lbnRCeUlkKCdsb2cxJyk7CiAgICAgICAgZWxlbS5pbm5lckhUTUwgKz0gJ21vdXNl
dXA8L2JyPic7CiAgICAgIH0KICAgICAgZnVuY3Rpb24gb25UZXN0U2VsZWN0TW91c2VEb3duKCkg
ewogICAgICAgIHZhciBlbGVtID0gZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoJ2xvZzEnKTsKICAg
ICAgICBlbGVtLmlubmVySFRNTCArPSAnbW91c2Vkb3duPC9icj4nOwogICAgICB9CiAgICA8L3Nj
cmlwdD4KICA8L2JvZHk+CjwvaHRtbD4K
</data>

          </attachment>
      

    </bug>

</bugzilla>