Bug 389478 - "Add favicons on back/forward menus" [p=ventnor.bugzilla@yahoo.com.au (Michael Ventnor) ui-r=beltzner r=gavin a1.9=schrep]
git-svn-id: svn://10.0.0.236/trunk@245119 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -2948,6 +2948,16 @@ function FillHistoryMenu(aParent) {
|
||||
|
||||
item.setAttribute("label", entry.title || entry.URI.spec);
|
||||
item.setAttribute("index", j);
|
||||
|
||||
if (j != index) {
|
||||
try {
|
||||
let iconURL = Cc["@mozilla.org/browser/favicon-service;1"]
|
||||
.getService(Ci.nsIFaviconService)
|
||||
.getFaviconForPage(entry.URI).spec;
|
||||
item.setAttribute("image", iconURL);
|
||||
} catch (ex) {}
|
||||
}
|
||||
|
||||
if (j < index) {
|
||||
item.className = "unified-nav-back";
|
||||
item.setAttribute("tooltiptext", tooltipBack);
|
||||
|
||||
Reference in New Issue
Block a user