From 04fd4811cb7d41f0e3af485185698ce5c810e129 Mon Sep 17 00:00:00 2001 From: Margaret Leibovic Date: Fri, 30 May 2014 16:04:59 -0700 Subject: [PATCH] Bug 1017047 - Properly restore private/desktopMode state of tab when undo-ing close tab. r=bnicholson --- mobile/android/components/SessionStore.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mobile/android/components/SessionStore.js b/mobile/android/components/SessionStore.js index d00cf208881f..5e5b1eb03da1 100644 --- a/mobile/android/components/SessionStore.js +++ b/mobile/android/components/SessionStore.js @@ -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);