зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
7d4adf63b1
Коммит
23c795e9da
|
@ -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"),
|
||||
|
|
Загрузка…
Ссылка в новой задаче