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
Родитель bf4db7a70d
Коммит 6474edb86b
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -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
) {