Bug 817931 - Don't restore the contents of the last closed window into a newly opened window if it's a private window; r=ttaubert

DONTBUILD since this is NPOTB for global PB builds
This commit is contained in:
Ehsan Akhgari 2012-12-04 00:18:26 -05:00
parent f01b9f1d51
commit 52bd8156e1

View File

@ -724,7 +724,9 @@ let SessionStoreInternal = {
}
else if (this._restoreLastWindow && aWindow.toolbar.visible &&
this._closedWindows.length
#ifndef MOZ_PER_WINDOW_PRIVATE_BROWSING
#ifdef MOZ_PER_WINDOW_PRIVATE_BROWSING
&& !PrivateBrowsingUtils.isWindowPrivate(aWindow)
#else
&& !this._inPrivateBrowsing
#endif
) {