WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
10508
Form controls doesn't work when mousedown event is canceled
https://bugs.webkit.org/show_bug.cgi?id=10508
Summary
Form controls doesn't work when mousedown event is canceled
Miroslav Juhos
Reported
2006-08-22 02:26:26 PDT
Overview Description: Form controls (radio buttons, checkboxes, selects, texboxes) doesn't work correctly when mousedown event is canceled. Canceling of mousedown couldn'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 & Platform: Build 2006-08-17 on Mac OS 10.4.7 Testcase: <html> <script> onmousedown = function(e) { e.preventDefault(); } </script> <body> <select> <option>first</option> <option>second</option> </select><br> <input type="radio" name="radioButtons">Item1<br> <input type="radio" name="radioButtons">Item2<br> <input type="checkbox" >Check<br> <input type="text" value="select me"><br> <input type="file"><br> </body> </html>
Attachments
Testcase
(422 bytes, text/html)
2006-08-22 02:27 PDT
,
Miroslav Juhos
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Miroslav Juhos
Comment 1
2006-08-22 02:27:11 PDT
Created
attachment 10163
[details]
Testcase
mitz
Comment 2
2006-08-22 04:46:15 PDT
See also
bug 9855
.
Miroslav Juhos
Comment 3
2006-08-22 05:04:57 PDT
Yes, same problem exist with scrollbars - if any element contains srollbars and mousedown event is canceled, scrollbars doesn't works. IMHO
bug 9855
could be duplicate to this bug because it is more general.
Alexey Proskuryakov
Comment 4
2008-03-03 11:45:23 PST
***
Bug 17649
has been marked as a duplicate of this bug. ***
Ahmad Saleem
Comment 5
2022-11-13 16:13:18 PST
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!
Alexey Proskuryakov
Comment 6
2022-11-14 08:39:35 PST
Yes, other browsers now match WebKit. Somewhat surprisingly, the behavior is inconsistent - radio buttons, checkbox and the file input still work. I won't be investigating the difference, as there is no problem to fix at this point.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug