[Webkit-unassigned] [Bug 10482] New: Oncontextmenu event handler cannot be registered

bugzilla-daemon at opendarwin.org bugzilla-daemon at opendarwin.org
Fri Aug 18 04:44:54 PDT 2006


http://bugzilla.opendarwin.org/show_bug.cgi?id=10482

           Summary: Oncontextmenu event handler cannot be registered
           Product: WebKit
           Version: 420+ (nightly)
          Platform: Macintosh PowerPC
        OS/Version: Mac OS X 10.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: WebCore JavaScript
        AssignedTo: webkit-unassigned at opendarwin.org
        ReportedBy: mjuhos at kerio.com
                CC: pdousa at kerio.com


Overview Description: 
Event handler for event "oncontextmenu" cannot be registered simple by adding
into document body. I mean this construction:

oncontextmenu = function(event) {
   alert("oncontextmenu")
}

Workaround:
Set handler as HTML attributte e.g.:
<body oncontextmenu="return contextMenuHandler()">

Steps to Reproduce:
   1) Open test case 
   2) Anywhere in document press left mouse button
   3) Confirm alert (singalizing that mousedown handler working)
   4) Press Ctrl+Left button or right mouse button (2 button mouse)

Actual Results:
   Alert "oncontextmenu" isn't displayed - handler isn't registered.

Expected Results: 
   Alert "oncontextmenu" will be displayed, event handler will be registered

Build Date & Platform should be: 
  Build 2006-08-17 on Mac OS 10.4.7


-- 
Configure bugmail: http://bugzilla.opendarwin.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list