зеркало из https://github.com/mozilla/pjs.git
fix for bug #389487: Add favicons on recently closed tabs list patch=Michael Wu <flamingice@sourmilk.net> r=sspitzer
This commit is contained in:
Родитель
6c069b376e
Коммит
d27e1885a9
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче