tor-browser

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

commit 93cfbcf151afdd0b3d8c740534a10fec136f864f
parent 1814ad27e1ee4fc976a13a26f86858931432decb
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) {