Este site irá ter funcionalidade limitada enquanto fazemos manutenção para melhorar a sua experiência. Se um artigo não resolve o seu problema e quiser colocar uma questão, temos a nossa comunidade de apoio à espera de o ajudar em @FirefoxSupport no Twitter, /r/firefox no Reddit.

Pesquisar no apoio

Evite burlas no apoio. Nunca iremos solicitar que telefone ou envie uma mensagem de texto para um número de telefone ou que partilhe informações pessoais. Por favor, reporte atividades suspeitas utilizando a opção "Reportar abuso".

Saber mais

unclean shutdown tab restore

more options

I try to configure firefox with the strictest privacy settings at all times, but there are some cases where privacy leaks are quite annoying. This problem is particularly annoying.

Firefox has a feature to restore tabs from a previous session on startup. Obviously I do not use this feature, not wittingly anyway. When firefox is shutdown cleanly, there is not a problem. When I kill firefox via SIGTERM or signal 9 then firefox will shutdown, but then when I start it up again, it will restore the previous session's tabs without even asking (not even the usual "do you want to restore?" page). This should not be. Firefox should startup as a clean slate.

While I understand in the case of a kill -9 that firefox is not able to delete temporary files, firefox is able to do this on a SIGTERM, but apparently it does not. But on startup, firefox should be configurable to delete any residual temporary files it discovers, instead of reloading (read: re-sending HTTP requests) my previous tabs, especially with no prompt.

How can I resolve this problem?

I try to configure firefox with the strictest privacy settings at all times, but there are some cases where privacy leaks are quite annoying. This problem is particularly annoying. Firefox has a feature to restore tabs from a previous session on startup. Obviously I do not use this feature, not wittingly anyway. When firefox is shutdown cleanly, there is not a problem. When I kill firefox via SIGTERM or signal 9 then firefox will shutdown, but then when I start it up again, it will restore the previous session's tabs without even asking (not even the usual "do you want to restore?" page). This should not be. Firefox should startup as a clean slate. While I understand in the case of a kill -9 that firefox is not able to delete temporary files, firefox is able to do this on a SIGTERM, but apparently it does not. But on startup, firefox should be configurable to delete any residual temporary files it discovers, instead of reloading (read: re-sending HTTP requests) my previous tabs, especially with no prompt. How can I resolve this problem?

Todas as respostas (1)

more options

You can prevent Firefox from automatically restoring after a crash. Instead, Firefox will give you the choice of restoring or loading your home page. Here's how to do that:

(A) In a new tab, type or paste about:config in the address bar and press Enter. Click the button promising to be careful.

(B) In the search box above the list, type or paste sess and pause while the list is filtered

(C) Double-click the browser.sessionstore.max_resumed_crashes preference and change the value from 1 to 0 and OK that.

Note: I suggest not changing any other sessionstore preferences without researching them first.

Speaking of privacy, do you already block Firefox from storing session cookies in the session history file? These are the relevant preferences:

  • browser.sessionstore.privacy_level => set to 2 (default is 0)
  • browser.sessionstore.privacy_level_deferred => set to 2 (default is 1)