Backout changeset d980e7a3aa49 from bug 677424 due to test failures.

This commit is contained in:
Dave Townsend 2011-08-12 21:59:55 -07:00
parent 8e0e038bd5
commit 03dfbd904f

View File

@ -1065,14 +1065,6 @@ SessionStoreService.prototype = {
if (length > maxTabsUndo)
this._windows[aWindow.__SSi]._closedTabs.splice(maxTabsUndo, length - maxTabsUndo);
}
// Remove the tab from the saved window state if it matches what is already
// there. This solves bug 677424
if (aTab._tPos < this._windows[aWindow.__SSi].tabs.length) {
var oldTab = this._windows[aWindow.__SSi].tabs[aTab._tPos];
if (oldTab.entries[oldTab.index - 1].url == aTab.linkedBrowser.currentURI.spec)
this._windows[aWindow.__SSi].tabs.splice(aTab._tPos, 1);
}
},
/**