X
Tap here to go to the mobile version of the site.

Support Forum

How can I retrieve my most recent tabs after I close Firefox?

Posted

This is not a new problem for me - it has been going on for months and months, and I have wasted countless hours looking for a solution - so I decided to post a question on the forum, and hope for the best.

The Problem: Whenever I close Firefox, it loses my most recent tabs, and there is NO way to get them back.

Here's what I have tried:

1. I set Firefox to automatically resume my previous session at startup. ( I did this a long time ago, and have not changed it since. ) When I restart Firefox ( without modifying the sessionstore.js file first ), I get an old session with all 5 of my tab groups present, but with two of them empty.

2. Before restarting, I right-click on sessionstore.js, select Properties, click on the Previous Versions tab, click the latest Restore point, and apply. ( The latest restore point is always at least a week old. ) Now, sessionstore.js shows a size > 1000 KB. When I restart, I get the "embarassing" screen. Clicking Restore gives me exactly what was promised - the set of tab groups that I had over a week ago. This is the best I can do. It does NOT have my LATEST tabs.

3. Before closing Firefox, I copy the sessionstore.js file from my Profile folder, and save it in a seperate folder on my desktop. ( This should contain any new tabs I just opened today, no? ) Then I close Firefox. Before restarting, I copy & paste the copy of sessionstore.js that I just saved into my Profile folder. When I restart, I get exactly the same results as in #2. The tabs I just opened today are gone.

4. When I searched Mozilla support, I came across this page: https://support.mozilla.org/en-US/kb/how-do-i-restore-my-tabs-last-time?esab=a&as=aaq . It said "Note: In order to get your tabs and windows back from the previous session, you should close Firefox from the menu: At the top of the Firefox window, click on the Firefox button and then select Exit." When I close Firefox in this manner, it makes absolutely no difference - the results are the same.

5. A page in Mozilla support also suggested using the plugin Session Manager. I tried this, and all it does is make it easier to go through steps #2 or #3 - the results on restarting are the same.

6. I tried writing a "Bug" to submit to the Mozilla developers, but it's way over my head!

I can't believe that this is the way things are supposed to happen. Surely other people are having the same problem!

This is not a new problem for me - it has been going on for months and months, and I have wasted countless hours looking for a solution - so I decided to post a question on the forum, and hope for the best. The Problem: Whenever I close Firefox, it loses my most recent tabs, and there is NO way to get them back. Here's what I have tried: 1. I set Firefox to automatically resume my previous session at startup. ( I did this a long time ago, and have not changed it since. ) When I restart Firefox ( without modifying the sessionstore.js file first ), I get an old session with all 5 of my tab groups present, but with two of them empty. 2. Before restarting, I right-click on sessionstore.js, select Properties, click on the Previous Versions tab, click the latest Restore point, and apply. ( The latest restore point is always at least a week old. ) Now, sessionstore.js shows a size > 1000 KB. When I restart, I get the "embarassing" screen. Clicking Restore gives me exactly what was promised - the set of tab groups that I had over a week ago. This is the best I can do. It does NOT have my LATEST tabs. 3. Before closing Firefox, I copy the sessionstore.js file from my Profile folder, and save it in a seperate folder on my desktop. ( This should contain any new tabs I just opened today, no? ) Then I close Firefox. Before restarting, I copy & paste the copy of sessionstore.js that I just saved into my Profile folder. When I restart, I get exactly the same results as in #2. The tabs I just opened today are gone. 4. When I searched Mozilla support, I came across this page: https://support.mozilla.org/en-US/kb/how-do-i-restore-my-tabs-last-time?esab=a&as=aaq . It said "Note: In order to get your tabs and windows back from the previous session, you should close Firefox from the menu: At the top of the Firefox window, click on the Firefox button and then select Exit." When I close Firefox in this manner, it makes absolutely no difference - the results are the same. 5. A page in Mozilla support also suggested using the plugin Session Manager. I tried this, and all it does is make it easier to go through steps #2 or #3 - the results on restarting are the same. 6. I tried writing a "Bug" to submit to the Mozilla developers, but it's way over my head! I can't believe that this is the way things are supposed to happen. Surely other people are having the same problem!

Additional System Details

Installed Plug-ins

  • Shockwave Flash 11.9 r900
  • Google Update
  • VLC media player Web Plugin 2.1.0
  • Next Generation Java Plug-in 10.45.2 for Mozilla browsers
  • NPRuntime Script Plug-in Library for Java(TM) Deploy
  • GEPlugin
  • 5.1.20913.0
  • Adobe PDF Plug-In For Firefox and Netscape 11.0.03
  • FreeCorder NPAPI
  • NPWLPG
  • VLC media player Web Plugin 2.0.2
  • Windows Activation Technologies Plugin for Mozilla
  • The Hulu Desktop Plugin allows Hulu.com to integrate with the Hulu Desktop application.

Application

  • Firefox 26.0
  • User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0
  • Support URL: https://support.mozilla.org/1/firefox/26.0/WINNT/en-US/

Extensions

  • Beef Taco (Targeted Advertising Cookie Opt-Out) 1.3.7 (john@velvetcache.org)
  • CoolPreviews 4.0 ({CE6E6E3B-84DD-4cac-9F63-8D2AE4F30A4B})
  • Freecorder 7.0.0.13 (addon@freecorder.com)
  • RoboForm Toolbar for Firefox 7.9.0.0 ({22119944-ED35-4ab1-910B-E619EA06A115})
  • SEO For Firefox 3.6.11 (seo4firefox@seobook.com)
  • Seo Toolbar 1.2.6 (seotoolbar@seobook.com)
  • SeoQuake 2.8.13 ({317B5128-0B0B-49b2-B2DB-1E7560E16C74})
  • Sothink Web Video Downloader for Firefox 6.9 ({FCAB6FDD-5585-425b-95C1-5ED856F3FD08})
  • Status-4-Evar 2013.10.31.22 (status4evar@caligonstudios.com)
  • StumbleUpon 4.16 ({AE93811A-5C9A-4d34-8462-F7B864FC4696})
  • Troubleshooter 1.1a (troubleshooter@mozilla.org)
  • Web Developer 1.2.5 ({c45c406e-ab73-11d8-be73-000a95be3b12})
  • WebRank Toolbar 4.4 (webrank-toolbar@probcomp.com)
  • Advertising Cookie Opt-out 1.5 (optout@google.com) (Inactive)
  • AVG Safe Search 10.0.0.1423 ({1E73965B-8B48-48be-9C8D-68B920ABC1C4}) (Inactive)
  • BitComet Video Downloader 1.29 ({B042753D-F57E-4e8e-A01B-7379A6D4CEFB}) (Inactive)
  • DOM Inspector 2.0.14 (inspector@mozilla.org) (Inactive)
  • DoNotTrackMe 2.2.8.307 (donottrackplus@abine.com) (Inactive)
  • DownThemAll! 2.0.13 ({DDC359D1-844A-42a7-9AA1-88A850A938A8}) (Inactive)
  • Flashblock 1.5.15.1 ({3d7eb24f-2740-49df-8937-200b1cc08f8a}) (Inactive)
  • Freecorder 6 2.1.9 ({132E58DE-22BF-44CA-A061-7FCE1E8BA1EC}) (Inactive)
  • Google Global 2.8 ({B97F57B9-1B42-4aed-9475-0022600C62DC}) (Inactive)
  • InspectThis 1.0.0 (inspectthis@mackay.dyndns.info) (Inactive)
  • NewTabURL 2.2.3 (newtaburl@sogame.cat) (Inactive)
  • Page Rank Checker 0.0.2 (contact@ueseo.org) (Inactive)
  • SearchGBY 0.9.51 (plugin@searchgby.com) (Inactive)
  • SEMToolbar 1.0b14 (semtoolbar@bruceclay.com) (Inactive)
  • Send images to Indulgy.com 1.0.1 (info@indulgy.com) (Inactive)
  • Session Manager 0.8.0.8 ({1280606b-2510-4fe0-97ef-9b5a22eafe30}) (Inactive)
  • TVU Web Player 2,5,3,1 (firefox@tvunetworks.com) (Inactive)
  • wxDfast 1.0 (4fe420e6e2fac@4fe420e6e2fe5.info) (Inactive)
  • ZoneAlarm Security Engine 1.5.380.0 ({FFB96CC1-7EB3-449D-B827-DB661701C6BB}) (Inactive)

Javascript

  • incrementalGCEnabled: True

Graphics

  • adapterDescription: ATI Radeon HD 4200
  • adapterDescription2:
  • adapterDeviceID: 0x9710
  • adapterDeviceID2:
  • adapterDrivers: aticfx64 aticfx64 aticfx32 aticfx32 atiumd64 atidxx64 atiumdag atidxx32 atiumdva atiumd6a atitmm64
  • adapterDrivers2:
  • adapterRAM: 256
  • adapterRAM2:
  • adapterVendorID: 0x1002
  • adapterVendorID2:
  • clearTypeParameters: Gamma: 1800 Pixel Structure: RGB ClearType Level: 100 Enhanced Contrast: 50
  • direct2DEnabled: False
  • direct2DEnabledMessage: [u'']
  • directWriteEnabled: False
  • directWriteVersion: 6.1.7601.17789
  • driverDate: 5-4-2012
  • driverDate2:
  • driverVersion: 8.947.0.0
  • driverVersion2:
  • info: {u'AzureCanvasBackend': u'skia', u'AzureFallbackCanvasBackend': u'cairo', u'AzureContentBackend': u'none', u'AzureSkiaAccelerated': 0}
  • isGPU2Active: False
  • numAcceleratedWindows: 0
  • numAcceleratedWindowsMessage: [u'']
  • numTotalWindows: 1
  • webglRenderer: Google Inc. -- ANGLE (ATI Radeon HD 4200 Direct3D9Ex vs_3_0 ps_3_0)
  • windowLayerManagerRemote: False
  • windowLayerManagerType: Basic

Modified Preferences

  • accessibility.typeaheadfind.flashBar: 0
  • browser.cache.check_doc_frequency: 1
  • browser.cache.disk.capacity: 1048576
  • browser.cache.disk.enable: False
  • browser.cache.disk.smart_size.first_run: False
  • browser.cache.disk.smart_size_cached_value: 1048576
  • browser.cache.memory.enable: False
  • browser.history_expire_days.mirror: 180
  • browser.link.open_newwindow.restriction: 0
  • browser.newtab.url:
  • browser.places.importBookmarksHTML: False
  • browser.places.smartBookmarksVersion: 4
  • browser.search.update: False
  • browser.search.useDBForOrder: True
  • browser.sessionstore.restore_hidden_tabs: True
  • browser.sessionstore.restore_pinned_tabs_on_demand: True
  • browser.sessionstore.upgradeBackup.latestBuildID: 20131205075310
  • browser.startup.homepage: about:home
  • browser.startup.homepage_override.buildID: 20131205075310
  • browser.startup.homepage_override.mstone: 26.0
  • browser.tabs.onTop: False
  • dom.disable_open_during_load: False
  • dom.ipc.plugins.enabled.np64stub.dll: False
  • dom.max_chrome_script_run_time: 0
  • dom.max_script_run_time: 0
  • dom.mozApps.used: True
  • dom.storage.enabled: False
  • extensions.lastAppVersion: 26.0
  • font.default.x-western: sans-serif
  • font.internaluseonly.changed: False
  • font.name.monospace.x-western: Lucida Console
  • font.name.sans-serif.x-western: Verdana
  • font.name.serif.x-western: Georgia
  • font.size.fixed.x-western: 12
  • font.size.variable.x-western: 14
  • general.useragent.extra.microsoftdotnet: ( .NET CLR 3.5.30729; .NET4.0E)
  • gfx.direct2d.disabled: True
  • javascript.options.strict: True
  • keyword.URL: http://search.us.com/serp?guid={5EE1410F-7C2A-4FA7-9CEE-3FFF1EBC18B2}&action=default_search&serpv=5&k=
  • layers.acceleration.disabled: True
  • media.autoplay.enabled: False
  • network.cookie.lifetimePolicy: 2
  • network.cookie.prefsMigrated: True
  • network.http.max-connections-per-server: 32
  • network.http.pipelining: True
  • network.http.pipelining.maxrequests: 6
  • network.http.proxy.pipelining: True
  • permissions.default.image: 0
  • places.database.lastMaintenance: 1390758177
  • places.history.expiration.transient_current_max_pages: 104858
  • places.history.expiration.transient_optimal_database_size: 167772160
  • places.last_vacuum: 1298237484
  • plugin.disable_full_page_plugin_for_types: application/pdf,application/vnd.adobe.xfdf,application/vnd.fdf,application/vnd.adobe.xdp+xml
  • plugin.expose_full_path: True
  • plugin.importedState: True
  • plugin.state.npffapi: 0
  • privacy.cpd.extensions-dta: True
  • privacy.cpd.siteSettings: True
  • privacy.donottrackheader.enabled: True
  • privacy.sanitize.migrateFx3Prefs: True
  • privacy.sanitize.timeSpan: 0
  • security.enable_java: True
  • security.warn_viewing_mixed: False
  • storage.vacuum.last.index: 1
  • storage.vacuum.last.places.sqlite: 1390459395

Misc

  • User JS: No
  • Accessibility: Yes
cor-el
  • Top 10 Contributor
  • Moderator
12000 solutions 111508 answers

You can check the sessionstore.js file to see if it contains your open tabs.

You can paste the code on the command line in the Browser Console (Firefox/Tools > Web Developer;Ctrl+Shift+J)

You can check the sessionstore.js file to see if it contains your open tabs. *http://forums.mozillazine.org/viewtopic.php?f=38&t=622036&start=60&p=12098147#p12098147 You can paste the code on the command line in the Browser Console (Firefox/Tools > Web Developer;Ctrl+Shift+J) *https://developer.mozilla.org/Browser_Console
jscher2000
  • Top 10 Contributor
2992 solutions 27795 answers

In Step 3, when you open your currently active profile folder:

  • Does sessionstore.js show a current timestamp, or an older timestamp corresponding with the older session?
  • Are there any extra sessionstore files, particularly ones with numbers in the name, such as sessionstore-1.js?
In Step 3, when you open your currently active profile folder: * Does sessionstore.js show a current timestamp, or an older timestamp corresponding with the older session? * Are there any extra sessionstore files, particularly ones with numbers in the name, such as sessionstore-1.js?

Question owner

  1. cor-el, I don't understand your comment, but I can check the sessionstore.js file by opening it in Notebook. I have done so, and it does NOT containl my most recently opened tabs.
  1. jscher2000, the only sessionstore files are sessionstore.js and sessionstore.bak, and they both have today's date, and are exactly the same size. But as I mentioned above, they don't contain my files. I think they are copies of the latest Restore Point sessionstore.js .

All the evidence suggests to me that Firefox is not regularly creating any sessionstore files while the browser is open. And when it closes ( I've watched this in my Profile folder ), both the sessionstore files revert to a size which is a LOT less than they were before closing. So evidently, there is some kind of schedule for the creation of the backup files in Previous Versions, and it only happens about every week or so.

#cor-el, I don't understand your comment, but I can check the sessionstore.js file by opening it in Notebook. I have done so, and it does NOT containl my most recently opened tabs. #jscher2000, the only sessionstore files are sessionstore.js and sessionstore.bak, and they both have today's date, and are exactly the same size. But as I mentioned above, they don't contain my files. I think they are copies of the latest Restore Point sessionstore.js . All the evidence suggests to me that Firefox is not regularly creating any sessionstore files while the browser is open. And when it closes ( I've watched this in my Profile folder ), both the sessionstore files revert to a size which is a LOT less than they were before closing. So evidently, there is some kind of schedule for the creation of the backup files in Previous Versions, and it only happens about every week or so.
jscher2000
  • Top 10 Contributor
2992 solutions 27795 answers

Helpful Reply

Hi prof611, "Previous Versions" generally are found in Windows restore points; they are not created by Firefox.

By default, sessionstore.js should be updated every 15 seconds (assuming there are changes), so the timestamp should advance continuously during your session. It sounds as though Firefox is not writing to the file.

Having the file shrink when Firefox shuts down could be partially due to removal of some session cookie information, but I don't think that should make such a dramatic difference. (I haven't tried to observe it myself.)

Have you run the experiment in Firefox's Safe Mode to check whether sessionstore.js is updated correctly with all extensions deactivated?

You can restart Firefox in Safe Mode using

Help > Restart with Add-ons Disabled

In the dialog, click "Start in Safe Mode" (not Reset)

Hi prof611, "Previous Versions" generally are found in Windows restore points; they are not created by Firefox. By default, sessionstore.js should be updated every 15 seconds (assuming there are changes), so the timestamp should advance continuously during your session. It sounds as though Firefox is not writing to the file. Having the file shrink when Firefox shuts down could be partially due to removal of some session cookie information, but I don't think that should make such a dramatic difference. (I haven't tried to observe it myself.) Have you run the experiment in Firefox's Safe Mode to check whether sessionstore.js is updated correctly with all extensions deactivated? You can restart Firefox in Safe Mode using Help > Restart with Add-ons Disabled In the dialog, click "Start in Safe Mode" (''not'' Reset)
cor-el
  • Top 10 Contributor
  • Moderator
12000 solutions 111508 answers

If the sessionstore.js file doesn't have your tabs then Firefox hasn't been able to create a new sessionstore.js file.

You can check which processes have a file handle on a file with the process explorer utility.

Use Find > Find Handle to see if that file is accessed (locked) by another program.

If the sessionstore.js file doesn't have your tabs then Firefox hasn't been able to create a new sessionstore.js file. You can check which processes have a file handle on a file with the process explorer utility. *http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx Use Find > Find Handle to see if that file is accessed (locked) by another program.

Question owner

Thank you, cor-el. I used the Process Explorer software to search for 'sessionstore', and it returned 0 results. So I then knew that another program accessing it was not the problem.

Thank you, thank you, thank you, jscher2000. Your answer solved my problem. I restarted Firefox in Safe Mode, and the problem was immediately solved. I have been watching my Profile now for almost a day, and the sessionstore.js file keeps growing in size as I add tabs. Shutting down Firefox doesn't have any deleterious effects. It restarts with all the addons activated, and resumes with the tabs that were open before closing it.

So it seems like the problem is solved, but I still have no idea what actually caused it in the first place, or how Safe Mode fixed it. However, "if it works, don't mess with it", so I'm not.

But if anybody can figure out what was really going on, please finish this thread. I'm not going to close it, because I'm curious.

Thank you, cor-el. I used the Process Explorer software to search for 'sessionstore', and it returned 0 results. So I then knew that another program accessing it was not the problem. Thank you, thank you, thank you, jscher2000. Your answer solved my problem. I restarted Firefox in Safe Mode, and the problem was immediately solved. I have been watching my Profile now for almost a day, and the sessionstore.js file keeps growing in size as I add tabs. Shutting down Firefox doesn't have any deleterious effects. It restarts with all the addons activated, and resumes with the tabs that were open before closing it. So it seems like the problem is solved, but I still have no idea what actually caused it in the first place, or how Safe Mode fixed it. However, "if it works, don't mess with it", so I'm not. But if anybody can figure out what was really going on, please finish this thread. I'm not going to close it, because I'm curious.
jscher2000
  • Top 10 Contributor
2992 solutions 27795 answers

Hi prof611, running in Safe Mode deactivates your extensions, as well as turning off some advanced display and JavaScript features.

Since extensions are the big ticket item, you may need to review those to see whether one of them could be blocking the normal session saving behavior. Open the Add-ons page using either:

  • Ctrl+Shift+a
  • orange Firefox button (or Tools menu) > Add-ons

In the left column, click Extensions. Do any pop out at you as session related? (Note that Tab Mix Plus has some kind of session feature.) You might just disable everything that isn't essential to your use of Firefox for the next 24 hours and see whether that resolves it. Finding the exact culprit could wait for a future round of testing.

Hi prof611, running in Safe Mode deactivates your extensions, as well as turning off some advanced display and JavaScript features. Since extensions are the big ticket item, you may need to review those to see whether one of them could be blocking the normal session saving behavior. Open the Add-ons page using either: * Ctrl+Shift+a * orange Firefox button (or Tools menu) > Add-ons In the left column, click Extensions. Do any pop out at you as session related? (Note that Tab Mix Plus has some kind of session feature.) You might just disable everything that isn't essential to your use of Firefox for the next 24 hours and see whether that resolves it. Finding the exact culprit could wait for a future round of testing.

Helpful Reply

Thanks jscher 2000. I guess I didn't make it clear. "It restarts with all the addons activated, and resumes with the tabs that were open before closing it." IE, it's running fine now with all the extensions activated. Everything is OK now.

So something in the Firefox code was causing the bad behavior. It's not essential that I find out what the problem was - I'm just curious. And if anybody else has this same problem, it might be nice to have it corrected at the source.

Thanks jscher 2000. I guess I didn't make it clear. "It restarts with all the addons activated, and resumes with the tabs that were open before closing it." IE, it's running fine now with all the extensions activated. Everything is OK now. So something in the Firefox code was causing the bad behavior. It's not essential that I find out what the problem was - I'm just curious. And if anybody else has this same problem, it might be nice to have it corrected at the source.