Bug 190142 - onmousedown should be cancelable
Summary: onmousedown should be cancelable
Status: RESOLVED FIXED
Alias: None
Product: konqueror
Classification: Applications
Component: kjs (show other bugs)
Version: 4.2.2
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-20 10:35 UTC by lunter
Modified: 2009-04-23 17:39 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
source (451 bytes, text/html)
2009-04-20 10:35 UTC, lunter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description lunter 2009-04-20 10:35:01 UTC
Version:           4.2.2 (using KDE 4.2.2)
OS:                MS Windows
Installed from:    MS Windows

Run this code:

<html>
 <body>
  <div><input /></div>
  <div style="background:red;cursor:pointer" onmousedown="return false">Click me. Onmousedown is cancelable. Input should be still focused.</div>
  <div>- Konqueror: FAILS</div>
  <div>- Firefox: OK</div>
  <div>- Opera: OK</div>
  <div>- Safari: OK</div>
  <div>- Chrome: OK</div>
  <div>- IE: FAILS</div>
  <script>
   document.getElementsByTagName('input')[0].focus()
  </script>
 </body>
</html>
Comment 1 lunter 2009-04-20 10:35:17 UTC
Created attachment 32947 [details]
source
Comment 2 Maksim Orlovich 2009-04-23 17:37:54 UTC
SVN commit 958236 by orlovich:

Make sure we don't transfer focus on a cancelled mousedown
BUG:190255
BUG:190142


 M  +1 -1      khtmlview.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=958236
Comment 3 Maksim Orlovich 2009-04-23 17:39:39 UTC
SVN commit 958239 by orlovich:

automatically merged revision 958236:
Make sure we don't transfer focus on a cancelled mousedown
BUG:190255
BUG:190142

 M  +1 -1      khtmlview.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=958239