Bug 845681 - Save session states without any open windows on Mac OS X; r=felipe

This commit is contained in:
Tim Taubert 2013-04-12 20:35:24 +02:00
parent 6789ef2fde
commit 36f54048f1

View File

@ -3660,6 +3660,7 @@ let SessionStoreInternal = {
}
}
#ifndef XP_MACOSX
// Don't save invalid states.
// Looks like we currently have private windows, only.
if (oState.windows.length == 0) {
@ -3667,6 +3668,7 @@ let SessionStoreInternal = {
TelemetryStopwatch.cancel("FX_SESSION_RESTORE_COLLECT_DATA_LONGEST_OP_MS");
return;
}
#endif
for (let i = oState._closedWindows.length - 1; i >= 0; i--) {
if (oState._closedWindows[i].isPrivate) {