mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-11 16:32:59 +00:00
Fix Go menu.
This commit is contained in:
parent
604a535e2b
commit
4e9820309d
@ -600,19 +600,26 @@ function updateGoMenu(goMenu)
|
||||
var builder = history.builder.QueryInterface(Components.interfaces.nsIXULTreeBuilder);
|
||||
|
||||
var beforeItem = document.getElementById("endHistorySeparator");
|
||||
beforeItem.hidden = false;
|
||||
|
||||
|
||||
var nameResource = gRDF.GetResource(NC_NS + "Name");
|
||||
|
||||
var endSep = beforeItem;
|
||||
var showSep = false;
|
||||
|
||||
for (var i = count-1; i >= 0; i--) {
|
||||
var res = builder.getResourceAtIndex(i);
|
||||
var url = res.Value;
|
||||
var titleRes = history.database.GetTarget(res, nameResource, true);
|
||||
if (!titleRes)
|
||||
continue;
|
||||
|
||||
showSep = true;
|
||||
var titleLiteral = titleRes.QueryInterface(Components.interfaces.nsIRDFLiteral);
|
||||
beforeItem = constructGoMenuItem(goMenu, beforeItem, url, titleLiteral.Value);
|
||||
}
|
||||
|
||||
if (showSep)
|
||||
endSep.hidden = false;
|
||||
}
|
||||
|
||||
function addGroupmarkAs()
|
||||
|
Loading…
Reference in New Issue
Block a user