It seems my Safari is not resuming correctly.

I open some tabs, then quit and when fire up Safari again it's opened like wasn't have any tabs opened before.

Is it some version bug, or i should look for something in Safari prefs?

  • Safari 5.1.7 (7534.57.2)
  • MOX 10.7.4 (Build 11E53)

EDIT: In reaction to Michiel i've checked whether i have Resume turned on. System preferences -> General

  • Is restoring windows when quitting and re-opening apps unchecked in the general preferences? Does defaults read com.apple.Safari NSQuitAlwaysKeepsWindows return 0? – Lri Jun 19 '12 at 8:33
  • git.io/csCr6w -- is there some clean way to fix it? I don't want to do it via shell – Mailo Světel Jun 19 '12 at 8:48
  • I just thought NSQuitAlwaysKeepsWindows might have been set to false. But since there was no key for it, it's something else... – Lri Jun 19 '12 at 9:05

It's not a setting in Safari, but a general setting. Go to your System Preferences < General and make sure Restore windows when quitting and re-opening apps is checked on.

enter image description here

But you can install some 3th party apps too.

  • There is SafariRestore, which will basically do the same. But you have to disable the Restore windows when quitting and re-opening apps on the screenshot above!
  • You can also add the Sessions extension to Safari which will do the same.

I haven't any experience with neither of these apps, so please let me know if it works out!

| improve this answer | |
  • 1
    Unfortunately i have it enabled (see updated question) – Mailo Světel Jun 19 '12 at 8:45
  • 1
    Hmm, that's odd. It works for me with great ease. I'll check for more solutions... – Michiel Jun 19 '12 at 8:51
  • 1
    Last week or so it was working for me also – Mailo Světel Jun 19 '12 at 8:59
  • 1
    See my edited answer! – Michiel Jun 19 '12 at 9:12
  • 2
    I found a questionable fix. Now it works, but thank you. The only thing which could cause this, could be the recent Safari update. I wasn't doing any system invasive stuff for a long time, maybe for all the time i have it installed ;) – Mailo Světel Jun 19 '12 at 9:19

Now it's working again.

Steps i did:

  • Disable and Enable again resume in System preferences → General
  • Enable and Disable again extensions in Safari → Preferences. I don't have any extensions installed. The "abling" was just about the Safari's functionality Abling Extensions in Safari

I don't know what of these steps fixed it, but now it simply works :/

P.S.: Back to Lauri Ranta's check. It has still same result

defaults read com.apple.Safari NSQuitAlwaysKeepsWindows                                                                                                                     
2012-06-19 11:13:35.069 defaults[2240:707] 
The domain/default pair of (/Users/mailo/Library/Preferences/com.apple.Safari.plist, NSQuitAlwaysKeepsWindows) does not exist
| improve this answer | |

I found another workaround, although I'm not sure why this worked or even if it actually worked or was simply a coincidence.

What I did was: Restore Safari (in the main Safari menu). I had every box checked except the ones about location and saving passwords. So it was sort of an "erase". Then I quit Safari en started it again. Now it works again, correctly resuming all tabs I had open.

| improve this answer | |

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .