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

This commit is contained in:
locka%iol.ie 2001-05-03 21:43:23 +00:00
parent 22437b8ee1
commit 5d0cfbccbd

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.