We’ve all done it… you’re browsing the web in Safari… you have several tabs open… and instead of just closing one tab, you accidentally close the browser window instead. Or, you hit command-Q instead of Command-W. That sucks, right?
The next major release of Safari will be addressing this, by throwing up a warning dialog box if you try to close a window with multiple tabs open. But, you don’t have to wait to gain this functionality.
It has a couple of ways of doing this. First, it adds a handy item to the File Menu called, Unclose Window. If you close a browser window, and then decide you want it back, just select Unclose Window. It will restore the window with whatever tabs you had open.
The second way it helps is if you accidentally quit Safari, all you windows and tabs will be right where you left them the next time you open Safari. This is a great feature, but it also has some risks. If you’re browsing your favorite porn site, and your girlfriend walks in, and you quit Safari… the next time you launch Safari you’ll be right back at your favorite porn site… better make sure you’re alone.
found via MacWorld