Bug 190142

Summary: onmousedown should be cancelable
Product: [Applications] konqueror Reporter: lunter <lunter>
Component: kjsAssignee: Konqueror Developers <konq-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 4.2.2   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:
Attachments: source

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