Bug 1017047 - Properly restore private/desktopMode state of tab when undo-ing close tab. r=bnicholson

This commit is contained in:
Margaret Leibovic 2014-05-30 16:04:59 -07:00
parent bddb535017
commit 04fd4811cb

View File

@ -842,7 +842,11 @@ SessionStore.prototype = {
let closedTab = closedTabs.splice(aIndex, 1).shift();
// create a new tab and bring to front
let params = { selected: true };
let params = {
selected: true,
isPrivate: closedTab.isPrivate,
desktopMode: closedTab.desktopMode
};
let tab = aWindow.BrowserApp.addTab(closedTab.entries[closedTab.index - 1].url, params);
this._restoreHistory(closedTab, tab.browser.sessionHistory);