X
Tap here to go to the mobile version of the site.
Your Firefox is out of date and may contain a security risk! Upgrade Firefox

Support Forum

I want to permanetly disable restore previous session and recently closed windows button

Posted

My Firefox homepage is set to google and everytime I start Firefox it goes directly to google. No problem here. The problem that I have is that under the history tab there is a restore previous session button that is annoying me. The privacy setting is set to "Use custom settings for history". The only thing that are checked are the "Accept cookies from sites" and "Accept third-party cookies" checkboxes. Solution that starts with "Are you using Tools > Options > General > Startup: "When Firefox Starts": "Show my windows and tabs from last time" ? " Please don't. I also want to disable the recently closed windows button under that darn history tab. I just can't figure it out why Firefox doesn't seem to care about people's privacy. I'm using Firefox 6. I know I have to update it but that's not the point here

Additional System Details

Installed Plug-ins

  • Shockwave Flash 11.5 r502
  • npsitesafety
  • NPRuntime Script Plug-in Library for Java(TM) Deploy
  • Next Generation Java Plug-in 1.6.0_37 for Mozilla browsers
  • 5.1.10411.0
  • Adobe PDF Plug-In For Firefox and Netscape 10.1.5

Application

  • User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0) Gecko/20100101 Firefox/6.0

More Information

cor-el
  • Top 10 Contributor
  • Moderator
10753 solutions 96760 answers

Do you still want to be able to reopen closed tabs or windows during the current session?

See:

Question owner

Yes but not imperative.

I don't want to permanently use private browsing on my own laptop but would like some form of privacy as my newphews sometimes use my laptop. The only solution I found so far is to close every windows and re start Firefox and then close it again. I think you'll agree that's a dumb & tedious solution

Question owner

So no one knows how to do this? Guess that i'm switching to Chrome then

RMellish 0 solutions 2 answers

Helpful Reply

I have much the same problem. I don't want to clear all recent history, but I DO want to delete the entries in "Recently Closed Tabs" and "Recently Closed Windows". Those must be stored in a file or folder somewhere, so if we knew where that was we could easilhy delete them -- or just some of them, as desired.

cor-el
  • Top 10 Contributor
  • Moderator
10753 solutions 96760 answers

"Recently Closed Tabs" and "Recently Closed Windows" data is stored in the sessionstore.js as part of the session data.

You can (temporarily) set the browser.sessionstore.max_tabs_undo pref to 0 to clear the "Recently Closed Tabs" list. If you want to re-use the "Recently Closed Tabs" feature (Undo Closed Tabs) then you can reset the browser.sessionstore.max_tabs_undo pref to the default value via the right-click context menu.

You can temporarily set the browser.sessionstore.max_windows_undo pref to 0 to reset the "Recently Closed Windows" list.

Firefox will remember one window if you open additional windows and close that window while tabs are open in that window and the max_windows_undo is set to 0.

Close all tabs in a window before closing that window to prevent the window from appearing in the recently closed windows list.

  • Note that this may not be possible with a pop-up window.

Set the browser.tabs.closeWindowWithLastTab pref to false on the about:config page to prevent closing the last tab from closing that window.

You can (temporarily) set the browser.sessionstore.max_tabs_undo pref to 0 to clear the "Recently Closed Tabs" list.
If you want to re-use the "Recently Closed Tabs" feature (Undo Closed Tabs) then you can reset the browser.sessionstore.max_tabs_undo pref to the default value via the right-click context menu.

You can temporarily set the browser.sessionstore.max_windows_undo pref to 0 to reset the "Recently Closed Windows" list.

Firefox will remember one window if you open additional windows and close that window while tabs are open in that window and the max_windows_undo is set to 0.

Close all tabs in a window before closing that window to prevent the window from appearing in the recently closed windows list.

  • Note that this may not be possible with a pop-up window.

Set the browser.tabs.closeWindowWithLastTab pref to false on the about:config page to prevent closing the last tab from closing that window.

RMellish 0 solutions 2 answers

Thanks for those suggestions -- but I'm afraid I need more explanation.

> "Recently Closed Tabs" and "Recently Closed Windows" data is stored in the sessionstore.js as part of the session data. <

What is the sessionstore.js and where can I find it?

> You can (temporarily) set the browser.sessionstore.max_tabs_undo pref to 0 ... <

Where is that setting? I can't find it in any of the tabs from Tools > Options.

cor-el
  • Top 10 Contributor
  • Moderator
10753 solutions 96760 answers

That is a file in the Firefox profile folder.

See:


Type about:config in the location (address) bar and press the "Enter" key to open the about:config page, just like you open a website by typing the URL in the location bar.

  • If you see a warning message then you can confirm that you want to access the about:config page.
  • use the Search bar at the top of the about:config page to locate preferences more easily
  • preferences that have been modified and do not have the default value show as bold (user set)
  • preferences that are user set (bold) can be reset to the default value via the right-click context menu
  • preferences can be changed via the right-click context menu: Modify (String or Integer) or Toggle (Boolean) or by double-clicking the line with the pref
  • preferences can be created via the right-click context menu: New -> String, Integer, Boolean

Note that you should be cautious with changing prefs if you are not experienced enough to understand what you are doing. The warning is there for a reason.