mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-27 19:09:47 +00:00
Bug 1017047 - Properly restore private/desktopMode state of tab when undo-ing close tab. r=bnicholson
This commit is contained in:
parent
bddb535017
commit
04fd4811cb
@ -842,7 +842,11 @@ SessionStore.prototype = {
|
|||||||
let closedTab = closedTabs.splice(aIndex, 1).shift();
|
let closedTab = closedTabs.splice(aIndex, 1).shift();
|
||||||
|
|
||||||
// create a new tab and bring to front
|
// 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);
|
let tab = aWindow.BrowserApp.addTab(closedTab.entries[closedTab.index - 1].url, params);
|
||||||
this._restoreHistory(closedTab, tab.browser.sessionHistory);
|
this._restoreHistory(closedTab, tab.browser.sessionHistory);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user