mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-26 14:30:27 +00:00
PageMenu.jsm - Ci.nsIXULContextMenuBuilder no longer exists (throws an error), allow separator lines
This commit is contained in:
@@ -227,6 +227,8 @@ HTMLMenuElement::TraverseContent(nsIContent* aContent,
|
||||
aBuilder->AddItemFor(menuitem, CanLoadIcon(child, icon));
|
||||
|
||||
aSeparator = ST_FALSE;
|
||||
} else if (child->IsHTML(nsGkAtoms::hr)) {
|
||||
aBuilder->AddSeparator();
|
||||
} else if (tag == nsGkAtoms::menu && !element->IsHidden()) {
|
||||
if (child->HasAttr(kNameSpaceID_None, nsGkAtoms::label)) {
|
||||
nsAutoString label;
|
||||
|
||||
Reference in New Issue
Block a user