9

Possible Duplicate:
Chrome crashed without providing “Restore” button

My Chrome instance crashed, and when it restarted, it had lost all of my tabs, with no option to restore my tabs.

I'm aware of Last Tabs, Last Session and Current Tabs, Current Session in ~/Library/Application Support/Google/Chrome/Default.

I have months of Time Machine backups for these files, so I'm pretty sure I have the relevant tabs backed up somewhere. Just blindly copying and renaming files seems a little haphazard. Is there some way of looking at the contents of each file, to ensure that I'm restoring the correct pair?

I'm bemoaning that Google hasn't used plain text here; Firefox with sessionstore.js is fantastic in this regard.

jabley
  • 1,646
  • 2
  • 12
  • 7
  • Sadly I do not think that if Chrome crashes and does prompt you to recover the session there is much you can do. – Ramhound Oct 03 '11 at 14:17
  • @Ramhound see http://superuser.com/questions/341068/how-can-i-load-my-last-tabs-into-chrome-using-last-tabs-last-session-files I know that I have a backup of the relevant files for my profile, but determining which backup to use isn't obvious to me. – jabley Oct 03 '11 at 14:53
  • See also ["Chrome crashed without providing “Restore” button"](http://superuser.com/questions/342437/). – JdeBP Oct 04 '11 at 11:29

3 Answers3

5

I've replaced the ~/Library/Application Support/Google/Chrome/Default folder with a previous one from my Time Machine, restarted Chrome and afterwards it worked like a charm.

Thus, the session (and tabs) are restored if a backup is on-hand. The Windows equivalent to this path works also.

ta.speot.is
  • 14,205
  • 3
  • 33
  • 48
sciabelo
  • 51
  • 1
  • 1
3

This answer points to a JavaScript app (open sourced on GitHub) that attempts to parse Chrome session saver (SNSS) files.

Dan Dascalescu
  • 3,769
  • 6
  • 35
  • 53
  • Thanks, that looks good. The files aren't quite sqlite(3), so having a custom parser will be handy. I guess I can always try ``strings`` if it comes to it. – jabley Jan 23 '12 at 13:19
  • 1
    @jabley turns out the javascript app is just regexing the file looking for URLs – davenpcj Jul 19 '12 at 22:31
2

For future use you may want to look into Session Buddy

Session Buddy is a flexible session management extension that allows you to easily save, edit, and restore your browser sessions.

  • Automatic capture of your 10 most recent sessions is especially handy for recovering a session after a browser or system crash.
Thermionix
  • 851
  • 1
  • 9
  • 12