mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-23 18:26:15 +00:00
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:
parent
22437b8ee1
commit
5d0cfbccbd
@ -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.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user