diff --git a/browser/components/sessionstore/src/nsSessionStore.js b/browser/components/sessionstore/src/nsSessionStore.js index 5ad82ba3b6ca..376db6b4c64e 100644 --- a/browser/components/sessionstore/src/nsSessionStore.js +++ b/browser/components/sessionstore/src/nsSessionStore.js @@ -1496,13 +1496,16 @@ SessionStoreService.prototype = { nonPopupCount++; } this._updateCookies(total); - + +#ifndef XP_MACOSX // if no non-popup browser window remains open, return the state of the last closed window(s) if (nonPopupCount == 0 && this._lastClosedWindows) { // prepend the last non-popup browser window, so that if the user loads more tabs // at startup we don't accidentally add them to a popup window total = this._lastClosedWindows.concat(total); } +#endif + if (activeWindow) { this.activeWindowSSiCache = activeWindow.__SSi || ""; }