Bug 369151: Restored blank tabs can't be reopened once they're closed, patch by Simon B�nzli <zeniko@gmail.com>, r=dietrich

This commit is contained in:
gavin%gavinsharp.com 2007-02-05 19:06:06 +00:00
Родитель 7d4adf63b1
Коммит 23c795e9da
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -551,7 +551,8 @@ SessionStoreService.prototype = {
// store closed-tab data for undo
var tabState = this._windows[aWindow.__SSi].tabs[aTab._tPos];
if (tabState && tabState.entries[0].url != "about:blank") {
if (tabState && (tabState.entries.length > 1 ||
tabState.entries[0].url != "about:blank")) {
this._windows[aWindow.__SSi]._closedTabs.unshift({
state: tabState,
title: aTab.getAttribute("label"),