Join the Mozilla’s Test Days event from Dec 2–8 to test the new Firefox address bar on Firefox Beta 134 and get a chance to win Mozilla swag vouchers! 🎁

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

problems restoring previous tabs

  • 6 回覆
  • 4 有這個問題
  • 4 次檢視
  • 最近回覆由 fifosts

more options

Yesterday, I aborted the Adobe Flash Player installation when I discovered that it tried to install a virus scanner, too. I restarted the Adobe Flash Player installation unchecking this option, and after restart of Firefox, my tabs (I guess more than hundred tabs in five windows) were gone. I saved old versions of sessionstore.js and sessionstore.bak, and but don't know how to restore them. Editing the files shows me that they really contain my old URLs including their history. Copying sessionstore.js in the profile folder and then restarting Firefox doesn't work because Firefox renames sessionstore.js in sessionstore.bak and creates a new sessionstore.js. Even entering about:sessionrestore then doesn't work. Can anyone help me?

Yesterday, I aborted the Adobe Flash Player installation when I discovered that it tried to install a virus scanner, too. I restarted the Adobe Flash Player installation unchecking this option, and after restart of Firefox, my tabs (I guess more than hundred tabs in five windows) were gone. I saved old versions of sessionstore.js and sessionstore.bak, and but don't know how to restore them. Editing the files shows me that they really contain my old URLs including their history. Copying sessionstore.js in the profile folder and then restarting Firefox doesn't work because Firefox renames sessionstore.js in sessionstore.bak and creates a new sessionstore.js. Even entering about:sessionrestore then doesn't work. Can anyone help me?

被選擇的解決方法

Dear jscher2000,

thank you very much for your immediate support. I guess that I tried this before.

In the meantime, I found a solution, which is certainly not optimal and quite cumbersome, but it has worked: I searched for various old sessionstore.js (or .bak etc.) files and edited them in order to make sure that they contained my previous tabs. I took one of them and formatted it with a JSON Formatter, http://www.freeformatter.com/json-formatter.html. The tool complaint that my file was too big (1.5 MB), but it did its job nevertheless and made the file readable. Then I edited the file with Cygwin vi editor, which allows me to easily find the corresponding brackets using the “%” command (in principle, any editor will do), and copied the URLs into newly created browser tabs. I took me some time, but I now have my tabs back, losing their history, but it doesn’t matter.

從原來的回覆中察看解決方案 👍 0

所有回覆 (6)

more options

Good job saving the old files!

Usually sessionstore.js contains your current session (or if Firefox is closed, your immediately previous session) and sessionstore.bak contains your previous session.

If you think you want to restore the session represented by sessionstore.bak, you can try this:

Exit Firefox and in your currently active profile folder, rename the current sessionstore.js to sessionstore.bad

Copy your old sessionstore.bak file to the folder and rename it to sessionstore.js

When you start Firefox, the old session should be available from History > Restore Previous Session

Any luck?

more options

Did you try to restore the previous session (History > Restore Previous Session) or check "History > Recently Closed Tabs/Windows"?

more options

選擇的解決方法

Dear jscher2000,

thank you very much for your immediate support. I guess that I tried this before.

In the meantime, I found a solution, which is certainly not optimal and quite cumbersome, but it has worked: I searched for various old sessionstore.js (or .bak etc.) files and edited them in order to make sure that they contained my previous tabs. I took one of them and formatted it with a JSON Formatter, http://www.freeformatter.com/json-formatter.html. The tool complaint that my file was too big (1.5 MB), but it did its job nevertheless and made the file readable. Then I edited the file with Cygwin vi editor, which allows me to easily find the corresponding brackets using the “%” command (in principle, any editor will do), and copied the URLs into newly created browser tabs. I took me some time, but I now have my tabs back, losing their history, but it doesn’t matter.

more options

Go back to the Adobe Flash Player installation web page. But read carefully what you are asked. The site does ask if you want the other program.

more options

Note that in current Firefox releases you can open the file in the Scratchpad (Firefox/Tools > Web Developer) and click the "Pretty Print" button to format JSON files for readability and save such a file or edit the file in the Scratchpad.

more options

Thank you, cor-el, for this advice. I didn't know before.

由 fifosts 於 修改