tor-browser

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

commit 9c14ce38a449da59f3600a6d2489678b79b0e196
parent d7ca3f79d8ed57c985393dd4caab413f421532ca
Author: Kershaw Chang <kershaw@mozilla.com>
Date:   Sun, 21 Dec 2025 19:28:53 +0000

Bug 2007199 - Improve handling of transaction cancellation, r=necko-reviewers,valentin

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

Diffstat:
Mnetwerk/protocol/http/PendingTransactionQueue.cpp | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/netwerk/protocol/http/PendingTransactionQueue.cpp b/netwerk/protocol/http/PendingTransactionQueue.cpp @@ -267,7 +267,7 @@ void PendingTransactionQueue::Compact() { } void PendingTransactionQueue::CancelAllTransactions(nsresult reason) { - AutoTArray<nsHttpTransaction*, 64> toClose; + AutoTArray<RefPtr<nsHttpTransaction>, 64> toClose; for (const auto& info : mUrgentStartQ) { toClose.AppendElement(info->Transaction()); } @@ -283,7 +283,7 @@ void PendingTransactionQueue::CancelAllTransactions(nsresult reason) { mPendingTransactionTable.Clear(); for (auto trans : toClose) { - LOG(("PendingTransactionQueue::CancelAllTransactions %p\n", trans)); + LOG(("PendingTransactionQueue::CancelAllTransactions %p\n", trans.get())); trans->Close(reason); } }