tor-browser

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

commit fc5a6c995fd04982326b13e555aedb47f38a020f
parent 53be33be635f4ff7ae47eca5e0a4ff6f83b5313c
Author: Jeff Muizelaar <jmuizelaar@mozilla.com>
Date:   Thu, 11 Dec 2025 20:01:16 +0000

Bug 2005324 - Add markers for HTTP channel Cancel. r=valentin,necko-reviewers

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

Diffstat:
Mnetwerk/protocol/http/HttpChannelChild.cpp | 4++++
Mnetwerk/protocol/http/nsHttpChannel.cpp | 3+++
2 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/netwerk/protocol/http/HttpChannelChild.cpp b/netwerk/protocol/http/HttpChannelChild.cpp @@ -2154,6 +2154,10 @@ HttpChannelChild::Cancel(nsresult aStatus) { "[this=%p] cancelled call in child process from script: %s", this, logStack->get()); } + PROFILER_MARKER("HttpChannelChild::Cancel", NETWORK, + {MarkerStack::MaybeCapture( + profiler_feature_active(ProfilerFeature::Flows))}, + Tracing, "Http"); MOZ_ASSERT(NS_IsMainThread()); diff --git a/netwerk/protocol/http/nsHttpChannel.cpp b/netwerk/protocol/http/nsHttpChannel.cpp @@ -6980,6 +6980,9 @@ nsHttpChannel::Cancel(nsresult status) { LOG(("nsHttpChannel::Cancel [this=%p status=%" PRIx32 ", reason=%s]\n", this, static_cast<uint32_t>(status), mCanceledReason.get())); + PROFILER_MARKER("nsHttpChannel::Cancel", NETWORK, {}, FlowMarker, + Flow::FromPointer(this)); + MOZ_ASSERT_IF(!(mConnectionInfo && mConnectionInfo->UsingConnect()) && NS_SUCCEEDED(mStatus), !AllowedErrorForTransactionRetry(status));