mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-21 01:37:16 +00:00
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:
parent
b350a0fd0f
commit
0ccc1df6f1
@ -1089,6 +1089,14 @@ nsEventStateManager :: FireContextClick ( )
|
||||
allowedToDispatch = PR_FALSE;
|
||||
else if ( tag == nsHTMLAtoms::applet || tag == nsHTMLAtoms::object || tag == nsHTMLAtoms::embed )
|
||||
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 ) {
|
||||
// stop selection tracking, we're in control now
|
||||
|
Loading…
x
Reference in New Issue
Block a user