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
parent 225f378e1e
commit 7924a92312

View File

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