For embedding, always consume context menu clicks for applets, embeds, and objects, bug 118789 r=av sr=alecf

git-svn-id: svn://10.0.0.236/trunk@112796 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
peterlubczynski%netscape.com
2002-01-25 01:02:58 +00:00
parent 1c853ca32d
commit 5a1f925640

View File

@@ -1496,6 +1496,12 @@ ChromeContextMenuListener :: ContextMenu ( nsIDOMEvent* aMouseEvent )
}
break; // exit do-while
}
else if ( tag.EqualsWithConversion("object", PR_TRUE) || /* XXX what about images and documents? */
tag.EqualsWithConversion("embed", PR_TRUE) ||
tag.EqualsWithConversion("applet", PR_TRUE) )
{ // always consume events for plugins and Java
return NS_OK; // who may throw their own context menus
}
// Test if the element has an associated link
nsCOMPtr<nsIDOMNamedNodeMap> attributes;