tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 813224374ca2d9aa44770230bc40bd351bcbe6ea
parent 1d136aef4fb9e37f677d2cbfdb18b3f18a023e40
Author: Kershaw Chang <kershaw@mozilla.com>
Date:   Thu, 27 Nov 2025 13:32:40 +0000

Bug 2002687 - Don't retry transaction during shutdown, r=necko-reviewers,valentin

Differential Revision: https://phabricator.services.mozilla.com/D274274

Diffstat:
Mnetwerk/protocol/http/nsHttpTransaction.cpp | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/netwerk/protocol/http/nsHttpTransaction.cpp b/netwerk/protocol/http/nsHttpTransaction.cpp @@ -1851,6 +1851,11 @@ nsresult nsHttpTransaction::Restart() { return NS_ERROR_NET_RESET; } + // Let's not restart during shutdown. + if (AppShutdown::IsInOrBeyond(ShutdownPhase::AppShutdownConfirmed)) { + return NS_ERROR_ILLEGAL_DURING_SHUTDOWN; + } + LOG(("restarting transaction @%p\n", this)); if (mRequestHead) {