mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
Fix for menuitems being incorrectly marked as menus.
This commit is contained in:
parent
d7695c62cf
commit
a890d21e96
@ -220,7 +220,7 @@ RDFMenuBuilderImpl::AddWidgetItem(nsIContent* aElement,
|
||||
}
|
||||
|
||||
// Find out if we're a container or not.
|
||||
PRBool markAsContainer = IsContainer(aElement, aValue);
|
||||
PRBool markAsContainer = IsContainer(aElement, aValue) && !IsEmpty(aElement, aValue);
|
||||
nsCOMPtr<nsIAtom> itemAtom;
|
||||
|
||||
// Figure out what atom to use based on whether or not we're a container
|
||||
|
Loading…
Reference in New Issue
Block a user