mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1017047 - Properly restore private/desktopMode state of tab when undo-ing close tab. r=bnicholson
This commit is contained in:
parent
f4068508db
commit
80c24306d1
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user