RESOLVED DUPLICATE of bug 17335 17978
Contextmenu event blocks mouseover and mouseout events.
https://bugs.webkit.org/show_bug.cgi?id=17978
Summary Contextmenu event blocks mouseover and mouseout events.
Måns Gustafsson
Reported 2008-03-20 20:26:21 PDT
When a contextmenu event is triggered, other elements on the page stops receiving/acting on mouseover and mouseout events. If eg. a custom designed popup menu is used were highlighting of menu options and opening of submenus are triggered by mouseover events the menu fails due to this bug. This testcase worked as expected in Safari 3.0. Text case: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-US"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Test Case</title> <style type="text/css"> div { padding: 10px; margin: 10px; border: 1px #000 solid; background: #ffe; font: normal 11px verdana; } </style> </head> <body onclick=""> <div onclick="this.appendChild(document.createTextNode('click, '))" onmouseover="this.appendChild(document.createTextNode('mouseover, '))" onmouseout="this.appendChild(document.createTextNode('mouseout, '))"> This div handles click, mouseover and mouseout events.<br /><br /> However, in Safari 3.1, after a contextmenu event has been triggered the div stops acting on mouseover and mouseout events until a click event is triggered. In Safari 3.0 the events would continue to register.<br /><br /> If this div was a popup menu displayed by a contextmenu click with options highlighted and submenus displayed due to mouseover events they would fail due to this bug. <br /><br />Received events:&nbsp; </div> <div oncontextmenu="return false">Right click this div to trigger a contextmenu event.</div> </body>
Attachments
Test Case (1.25 KB, text/html)
2008-03-21 09:31 PDT, Måns Gustafsson
no flags
Måns Gustafsson
Comment 1 2008-03-21 09:31:22 PDT
Created attachment 19928 [details] Test Case A simple test case showing the bug.
Måns Gustafsson
Comment 2 2008-03-28 07:39:01 PDT
*** This bug has been marked as a duplicate of 17335 ***
Note You need to log in before you can comment on or make changes to this bug.