tor-browser

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

commit 1cb3be8cd6d129ea12707eba967694274ac2d76b
parent 6c0edd8a0b83d3e12b929f1cdf837162fb975f2e
Author: Nazım Can Altınova <canaltinova@gmail.com>
Date:   Tue, 14 Oct 2025 20:15:47 +0000

Bug 1994145 - Rename Performance::BufferEvent to ResourceTimingBufferFullEvent r=jlink

Previously, it was called BufferEvent confusingly, but it actually
handles the logic related to the resource timing buffer full event.

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

Diffstat:
Mdom/performance/Performance.cpp | 5+++--
Mdom/performance/Performance.h | 2+-
2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/dom/performance/Performance.cpp b/dom/performance/Performance.cpp @@ -915,7 +915,7 @@ void Performance::InsertUserEntry(PerformanceEntry* aEntry) { * * Buffer Full Event */ -void Performance::BufferEvent() { +void Performance::ResourceTimingBufferFullEvent() { /* * While resource timing secondary buffer is not empty, * run the following substeps: @@ -1049,7 +1049,8 @@ void Performance::InsertResourceEntry(PerformanceEntry* aEntry) { * Queue a task to run fire a buffer full event. */ NS_DispatchToCurrentThread(NewCancelableRunnableMethod( - "Performance::BufferEvent", this, &Performance::BufferEvent)); + "Performance::ResourceTimingBufferFullEvent", this, + &Performance::ResourceTimingBufferFullEvent)); } /* * Add new entry to the resource timing secondary buffer. diff --git a/dom/performance/Performance.h b/dom/performance/Performance.h @@ -222,7 +222,7 @@ class Performance : public DOMEventTargetHelper { private: MOZ_ALWAYS_INLINE bool CanAddResourceTimingEntry(); - void BufferEvent(); + void ResourceTimingBufferFullEvent(); void MaybeEmitExternalProfilerMarker( const nsAString& aName, Maybe<const PerformanceMeasureOptions&> aOptions, Maybe<const nsAString&> aStartMark, const Optional<nsAString>& aEndMark);