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:
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user