Bug 642624 - If shutdown Firefox when all closed windows are popups, exception occurs and session isn't saved. [r=zpao]

This commit is contained in:
Michael Kraft 2011-12-02 10:19:45 -08:00
Родитель 225f378e1e
Коммит 7924a92312
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -2518,7 +2518,7 @@ SessionStoreService.prototype = {
// at startup we don't accidentally add them to a popup window // at startup we don't accidentally add them to a popup window
do { do {
total.unshift(lastClosedWindowsCopy.shift()) total.unshift(lastClosedWindowsCopy.shift())
} while (total[0].isPopup) } while (total[0].isPopup && lastClosedWindowsCopy.length > 0)
} }
#endif #endif