Bug 830893 - Remember private state for zombified tabs. r=mfinkle

This commit is contained in:
Brian Nicholson 2013-01-15 16:43:44 -08:00
parent 4299ee5ed3
commit fb5b78f14b

View File

@ -8049,9 +8049,10 @@ var MemoryObserver = {
// If this browser is already a zombie, fallback to the session data
let currentURL = browser.__SS_restore ? data.entries[0].url : browser.currentURI.spec;
let sibling = browser.nextSibling;
let isPrivate = PrivateBrowsingUtils.isWindowPrivate(browser.contentWindow);
tab.destroy();
tab.create(currentURL, { sibling: sibling, zombifying: true, delayLoad: true });
tab.create(currentURL, { sibling: sibling, zombifying: true, delayLoad: true, isPrivate: isPrivate });
// Reattach session store data and flag this browser so it is restored on select
browser = tab.browser;