fix for bug #389487: Add favicons on recently closed tabs list patch=Michael Wu <flamingice@sourmilk.net> r=sspitzer

This commit is contained in:
sspitzer@mozilla.org 2007-08-31 16:03:29 -07:00
parent a394544602
commit dcd754b2ab
2 changed files with 4 additions and 0 deletions

View File

@ -5380,6 +5380,9 @@ HistoryMenu.populateUndoSubmenu = function PHM_populateUndoSubmenu() {
for (var i = 0; i < undoItems.length; i++) {
var m = undoPopup.appendChild(document.createElement("menuitem"));
m.setAttribute("label", undoItems[i].title);
if (undoItems[i].image)
m.setAttribute("image", undoItems[i].image);
m.setAttribute("class", "menuitem-iconic bookmark-item");
m.setAttribute("value", i);
m.setAttribute("oncommand", "undoCloseTab(" + i + ");");
m.addEventListener("click", undoCloseMiddleClick, false);

View File

@ -553,6 +553,7 @@ SessionStoreService.prototype = {
this._windows[aWindow.__SSi]._closedTabs.unshift({
state: tabState,
title: aTab.getAttribute("label"),
image: aTab.getAttribute("image"),
pos: aTab._tPos
});
var length = this._windows[aWindow.__SSi]._closedTabs.length;