don't allow clickhold timer to fire context menu for folder buttons on the personal toolbar. bug# 108470. r=brade/sr=blake/a=asa.

This commit is contained in:
pinkerton%netscape.com 2002-03-31 17:38:52 +00:00
parent b350a0fd0f
commit 0ccc1df6f1

View File

@ -1089,6 +1089,14 @@ nsEventStateManager :: FireContextClick ( )
allowedToDispatch = PR_FALSE; allowedToDispatch = PR_FALSE;
else if ( tag == nsHTMLAtoms::applet || tag == nsHTMLAtoms::object || tag == nsHTMLAtoms::embed ) else if ( tag == nsHTMLAtoms::applet || tag == nsHTMLAtoms::object || tag == nsHTMLAtoms::embed )
allowedToDispatch = PR_FALSE; allowedToDispatch = PR_FALSE;
else if ( tag == nsXULAtoms::toolbarbutton ) {
// a <toolbarbutton> that has the container attribute set will already have its
// own dropdown.
nsAutoString container;
lastContent->GetAttr(kNameSpaceID_None, nsXULAtoms::container, container);
if ( container.Length() )
allowedToDispatch = PR_FALSE;
}
if ( allowedToDispatch ) { if ( allowedToDispatch ) {
// stop selection tracking, we're in control now // stop selection tracking, we're in control now