为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

After upgrade, Firefox has lost my tabs. When I restore sessionstore.js, Friefox ignores or overwrites it. How can I get it to load my tabs from the backup files?

  • 6 个回答
  • 33 人有此问题
  • 1 次查看
  • 最后回复者为 Marco1

more options

After I upgraded, Firefox opened to the start page even though my home page is set to Show my Windows and tabs from last time. I have tried restoring sessionstore.js from a backup, but nothing I do can prevent Firefox from opening to the Mozilla home page. What happened? How do I restore my tabs?

After I upgraded, Firefox opened to the start page even though my home page is set to Show my Windows and tabs from last time. I have tried restoring sessionstore.js from a backup, but nothing I do can prevent Firefox from opening to the Mozilla home page. What happened? How do I restore my tabs?

所有回复 (6)

more options

see https://support.mozilla.com/en-US/questions/841322

Use File > Exit to close Firefox

To recover as much as you can

  1. Open History menu (Alt to show menus if don;t show them)
  2. Restore Previous Session
  3. Recently Closed Windows > individual or Restore all windows
more options

Restore previous session, recently closed tabs and recently closed windows are all greyed out. No love there. Sorry.

more options

If you want Firefox to open that session then try to select :

  • Tools > Options > General > Startup: "When Firefox Starts": "Show my windows and tabs from last time"
more options

This was how Firefox was set to begin with. As far as I know, that setting has never changed. Firefox just doesn't follow this command.

more options

I had the same problem. It seems Firefox cannot handle the sessionstore.js if it is very big. My was nearly 170 MB big! I didn't tried to understand the file format but it seems the important part is before the string "_closedTabs". I removed everything from there to the end and added the corresponding end of a fresh sessionstore.js. Then I tried to start Firefox again, it computed some time (maybe to restore the essential part of the end) and then I had my tabs back :-) Now the size of my sessionstore.js is 785 KB.

If you have also such a big file, you probably don't want to use an editor to remove the big part. I did it with sed in the command line of a Linux:

sed 's/_closedTabs.*//g' sessionstore.bak > sessionstore.restore

I'm not an expert in command line tools and I bet there is a better way, but it finished fast enough.

more options

My sessionstore.js was just 602 KB, but I had lost my open tabs anyway. I have found a similar solution as nexxTM.

After discovering the loss, I immediately made a copy of sessionstore.js. I opened it in a file editor. Unreadable. I found out it is in JSON format, so I downloaded a JSON plugin for my text editor (in my case, JSON Viewer for Notepad++) and formatted it. I became accustomed with the file format to some degree. I realized all my lost tabs were in a section _closedWindows. I cut its content and pasted it to the section windows, removing the old content. Then I undid the formatting, because Firefox cannot handle it. I needed to remove all new line and tab characters. In my case, this was a safe operation as the original file did not contain these characters. Then I moved the repaired file to the profile directory and started Firefox. My tabs were back.

由Marco1于修改