<?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>10508</bug_id>
          
          <creation_ts>2006-08-22 02:26:26 -0700</creation_ts>
          <short_desc>Form controls doesn&apos;t work when mousedown event is canceled</short_desc>
          <delta_ts>2022-11-14 08:39:35 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Forms</component>
          <version>420+</version>
          <rep_platform>Mac (PowerPC)</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>HasReduction</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Miroslav Juhos">mjuhos</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>akeerthi</cc>
    
    <cc>ap</cc>
    
    <cc>bfulgham</cc>
    
    <cc>mitz</cc>
    
    <cc>pdousa</cc>
    
    <cc>rniwa</cc>
    
    <cc>yuzhu.shen</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>53052</commentid>
    <comment_count>0</comment_count>
    <who name="Miroslav Juhos">mjuhos</who>
    <bug_when>2006-08-22 02:26:26 -0700</bug_when>
    <thetext>Overview Description: 
Form controls (radio buttons, checkboxes, selects, texboxes) doesn&apos;t work correctly when mousedown event is canceled. Canceling of mousedown couldn&apos;t affect these controls.
In other browsers (e.g. Firefox or IE) testcase works fine. 

Steps to Reproduce:
Open text case and 
1) Try select from select
2) Try select radio button
3) Try check checkbox
4) Try select text from text box
5) Try choose file

Actual Results:
Nothing works in Safari 2.0.4 (4.19.3)
Radio buttons and Checkboxes works only (WebKit Build 2006-08-17 on Mac OS 10.4.7)

Expected Results: 
1) Select will be unwrapped
2) Radio button will be selected
3) Checkbox will be checked
4) Text will be selected
5) Dialog selecting file will be opened

Build Date &amp; Platform: 
Build 2006-08-17 on Mac OS 10.4.7

Testcase:
&lt;html&gt;
    &lt;script&gt;
        onmousedown = function(e) {
            e.preventDefault();
        }
    &lt;/script&gt;
    &lt;body&gt;
        &lt;select&gt;
            &lt;option&gt;first&lt;/option&gt;
            &lt;option&gt;second&lt;/option&gt;
        &lt;/select&gt;&lt;br&gt;
        &lt;input type=&quot;radio&quot; name=&quot;radioButtons&quot;&gt;Item1&lt;br&gt;
        &lt;input type=&quot;radio&quot; name=&quot;radioButtons&quot;&gt;Item2&lt;br&gt;
        &lt;input type=&quot;checkbox&quot; &gt;Check&lt;br&gt;
        &lt;input type=&quot;text&quot; value=&quot;select me&quot;&gt;&lt;br&gt;
        &lt;input type=&quot;file&quot;&gt;&lt;br&gt;
    &lt;/body&gt;
&lt;/html&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53053</commentid>
    <comment_count>1</comment_count>
      <attachid>10163</attachid>
    <who name="Miroslav Juhos">mjuhos</who>
    <bug_when>2006-08-22 02:27:11 -0700</bug_when>
    <thetext>Created attachment 10163
Testcase</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53054</commentid>
    <comment_count>2</comment_count>
    <who name="">mitz</who>
    <bug_when>2006-08-22 04:46:15 -0700</bug_when>
    <thetext>See also bug 9855.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53056</commentid>
    <comment_count>3</comment_count>
    <who name="Miroslav Juhos">mjuhos</who>
    <bug_when>2006-08-22 05:04:57 -0700</bug_when>
    <thetext>Yes, same problem exist with scrollbars - if any element contains srollbars and mousedown event is canceled, scrollbars doesn&apos;t works.

IMHO bug 9855 could be duplicate to this bug because it is more general.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72585</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2008-03-03 11:45:23 -0800</bug_when>
    <thetext>*** Bug 17649 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1912129</commentid>
    <comment_count>5</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-11-13 16:13:18 -0800</bug_when>
    <thetext>I am able to reproduce this bug in Safari 16.1 but it matches the behavior with Firefox Nightly 108 as well. Unfortunately, Chrome Canary 110 is broken at the moment, so I am not able to test in it. But here are the results:

1 - Select does not show any drop-down
2 - Select Me - Input Field does not get selection.

It is consistent in both browsers. Since we are matching other browsers, do we need to do much here? Appreciate if someone can share input and mark this bug accordingly. Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1912329</commentid>
    <comment_count>6</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2022-11-14 08:39:35 -0800</bug_when>
    <thetext>Yes, other browsers now match WebKit.

Somewhat surprisingly, the behavior is inconsistent - radio buttons, checkbox and the file input still work. I won&apos;t be investigating the difference, as there is no problem to fix at this point.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>10163</attachid>
            <date>2006-08-22 02:27:11 -0700</date>
            <delta_ts>2006-08-22 02:27:11 -0700</delta_ts>
            <desc>Testcase</desc>
            <filename>events4.html</filename>
            <type>text/html</type>
            <size>422</size>
            <attacher name="Miroslav Juhos">mjuhos</attacher>
            
              <data encoding="base64">PGh0bWw+DQoJPHNjcmlwdD4NCgkJb25tb3VzZWRvd24gPSBmdW5jdGlvbihlKSB7DQoJCQllLnBy
ZXZlbnREZWZhdWx0KCk7DQoJCX0NCgk8L3NjcmlwdD4NCgk8Ym9keT4NCgkJPHNlbGVjdD4NCgkJ
CTxvcHRpb24+Zmlyc3Q8L29wdGlvbj4NCgkJCTxvcHRpb24+c2Vjb25kPC9vcHRpb24+DQoJCTwv
c2VsZWN0Pg0KCQk8YnI+DQoJCTxpbnB1dCB0eXBlPSJyYWRpbyIgbmFtZT0icmFkaW9CdXR0b25z
Ij5JdGVtMTxicj4NCgkJPGlucHV0IHR5cGU9InJhZGlvIiBuYW1lPSJyYWRpb0J1dHRvbnMiPkl0
ZW0yPGJyPg0KCQk8aW5wdXQgdHlwZT0iY2hlY2tib3giID5DaGVjazxicj4NCgkJPGlucHV0IHR5
cGU9InRleHQiIHZhbHVlPSJzZWxlY3QgbWUiPjxicj4NCgkJPGlucHV0IHR5cGU9ImZpbGUiPjxi
cj4NCgk8L2JvZHk+DQo8L2h0bWw+DQo=
</data>

          </attachment>
      

    </bug>

</bugzilla>