Hilfe durchsuchen

Vorsicht vor Support-Betrug: Wir fordern Sie niemals auf, eine Telefonnummer anzurufen, eine SMS an eine Telefonnummer zu senden oder persönliche Daten preiszugeben. Bitte melden Sie verdächtige Aktivitäten über die Funktion „Missbrauch melden“.

Weitere Informationen

Don't restore last tab with "Restore previous session" enabled.

  • 6 Antworten
  • 2 haben dieses Problem
  • 1 Aufruf
  • Letzte Antwort von sadolino

more options

I have the option "Restore previous session" enabled, and the option "browser.tabs.closeWindowWithLastTab" true. With these options set, when I close the final tab, the Firefox window closes as expected. However when I re-launch Firefox with the desktop icon, the last closed tab opens itself again. Instead, there should be a blank/home tab open. Since I closed the *tab* and not the * window*, the "previous session" should be empty. Is there any way to enable this behavior?

I have the option "Restore previous session" enabled, and the option "browser.tabs.closeWindowWithLastTab" true. With these options set, when I close the final tab, the Firefox window closes as expected. However when I re-launch Firefox with the desktop icon, the last closed tab opens itself again. Instead, there should be a blank/home tab open. Since I closed the *tab* and not the * window*, the "previous session" should be empty. Is there any way to enable this behavior?

Alle Antworten (6)

more options

You wanna close the tab and then the firefox window close completely, or how I can understand it better ?

more options

Quaraxkad said

What if you leave a 'New' Tab next to the 'Last' Tab you close. Does it restore your session with just the one New Tab?


~Pj

more options

Maybe use a desktop shortcut that opens the about:blank page when you do not want to restore the previous session.

more options

Pj said

What if you leave a 'New' Tab next to the 'Last' Tab you close. Does it restore your session with just the one New Tab?

If there are more than one tabs open when I close the window, then both tabs do re-open on launch. The issue only occurs when I close the final tab, which in effect closes the entire program window since I have "closeWindowWithLastTab" enabled.


cor-el said

Maybe use a desktop shortcut that opens the about:blank page when you do not want to restore the previous session.

That won't exactly work, because the desktop icon is not the only way that the program is launched. For example if I were to click a .url shortcut icon, or another program launches a browser instance then that previous undesired single-tab session will still be restored.

sadolino said

You wanna close the tab and then the firefox window close completely, or how I can understand it better ?

I'll try to explain how it works in a different browser, maybe it will make more sense... Using Opera Presto (v12.17 and older) as the example. I'm trying to duplicate this behavior as closely as possible.

Let's say I have 5 tabs open in Opera. If I close the whole Opera window, the next time it is launched (regardless of how) all 5 of those tabs will be restored. If a url was passed as an argument it will open that url in a 6th tab. This is *basically* what enabling "Restore previous session" does in Firefox.

Now let's say I have only 1 Opera tab open. If I close the whole window, the next time I launch Opera that one tab will be restored. However, if I instead close that one tab, the next time Opera launches it will *not* restore the tab.

Conversely, Firefox works properly when closing the window, but the final scenario is where it fails. I have a Firefox window open with 1 tab. If I close the window, the next time Firefox launches it restores that tab, which is good). But if I close the tab, the next time Firefox launches it restores that tab. It should not. (Truthfully I'm pretty sure that Opera Presto is still the only browser to do this correctly!)

more options

Someone in the firefox IRC channel referred me to this 10-year old bug report, still unresolved. https://bugzilla.mozilla.org/show_bug.cgi?id=492383

more options

Yes, you are right that it isn't right.

Did you try to make a backup of firefox and uninstall it with all folders and registry entries ?

Then try a new install.

Geändert am von sadolino