Add line to cancel native default handling of context menu events after it is already handled. b=78396 sr=blizzard@mozilla.orga

git-svn-id: svn://10.0.0.236/trunk@93846 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
locka%iol.ie
2001-05-03 21:43:23 +00:00
parent 263b77f3aa
commit a44f35ce5c

View File

@@ -1438,6 +1438,9 @@ ChromeContextMenuListener :: ContextMenu ( nsIDOMEvent* aMouseEvent )
if (!node)
return NS_OK;
// Stop the context menu event going to other windows (bug 78396)
aMouseEvent->PreventDefault();
// Find the first node to be an element starting with this node and
// working up through its parents.