tor-browser

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

commit b773c5045f80e154b63b9ba459e289ab554049c3
parent fa4e3d4c986fef32981e3b9f6406c8e67ea791e5
Author: Dan Baker <dbaker@mozilla.com>
Date:   Thu, 23 Oct 2025 14:50:40 -0600

Bug 1995393 - Vendor libwebrtc from 5c0e910544

Upstream commit: https://webrtc.googlesource.com/src/+/5c0e9105440eeeb4e4f895f93cc1eee1510fc9e2
    Use propagated instead of global clock in AlrDetector

    Bug: webrtc:42223992
    Change-Id: I7da261c459e5592a98da1f2b4808a826cdeee8ba
    Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/404241
    Auto-Submit: Danil Chapovalov <danilchap@webrtc.org>
    Reviewed-by: Evan Shrubsole <eshr@webrtc.org>
    Commit-Queue: Evan Shrubsole <eshr@webrtc.org>
    Cr-Commit-Position: refs/heads/main@{#45327}

Diffstat:
Mthird_party/libwebrtc/README.mozilla.last-vendor | 4++--
Mthird_party/libwebrtc/modules/congestion_controller/goog_cc/BUILD.gn | 1-
Mthird_party/libwebrtc/modules/congestion_controller/goog_cc/alr_detector.cc | 3+--
Mthird_party/libwebrtc/modules/congestion_controller/goog_cc/alr_detector.h | 4++--
4 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/third_party/libwebrtc/README.mozilla.last-vendor b/third_party/libwebrtc/README.mozilla.last-vendor @@ -1,4 +1,4 @@ # ./mach python dom/media/webrtc/third_party_build/vendor-libwebrtc.py --from-local /Users/danielbaker/elm/.moz-fast-forward/moz-libwebrtc --commit mozpatches libwebrtc -libwebrtc updated from /Users/danielbaker/elm/.moz-fast-forward/moz-libwebrtc commit mozpatches on 2025-10-23T20:47:39.634926+00:00. +libwebrtc updated from /Users/danielbaker/elm/.moz-fast-forward/moz-libwebrtc commit mozpatches on 2025-10-23T20:50:26.598307+00:00. # base of lastest vendoring -c0426dbdf7 +5c0e910544 diff --git a/third_party/libwebrtc/modules/congestion_controller/goog_cc/BUILD.gn b/third_party/libwebrtc/modules/congestion_controller/goog_cc/BUILD.gn @@ -81,7 +81,6 @@ rtc_library("alr_detector") { "../../../api/units:timestamp", "../../../logging:rtc_event_pacing", "../../../rtc_base:checks", - "../../../rtc_base:timeutils", "../../../rtc_base/experiments:alr_experiment", "../../../rtc_base/experiments:field_trial_parser", "../../pacing:interval_budget", diff --git a/third_party/libwebrtc/modules/congestion_controller/goog_cc/alr_detector.cc b/third_party/libwebrtc/modules/congestion_controller/goog_cc/alr_detector.cc @@ -24,7 +24,6 @@ #include "rtc_base/checks.h" #include "rtc_base/experiments/alr_experiment.h" #include "rtc_base/experiments/struct_parameters_parser.h" -#include "rtc_base/time_utils.h" namespace webrtc { @@ -75,7 +74,7 @@ void AlrDetector::OnBytesSent(DataSize bytes_sent, Timestamp send_time) { bool state_changed = false; if (alr_budget_.budget_ratio() > conf_.start_budget_level_ratio && !alr_started_time_) { - alr_started_time_ = Timestamp::Millis(TimeMillis()); + alr_started_time_ = env_.clock().CurrentTime(); state_changed = true; } else if (alr_budget_.budget_ratio() < conf_.stop_budget_level_ratio && alr_started_time_) { diff --git a/third_party/libwebrtc/modules/congestion_controller/goog_cc/alr_detector.h b/third_party/libwebrtc/modules/congestion_controller/goog_cc/alr_detector.h @@ -43,8 +43,8 @@ class AlrDetector { // Set current estimated bandwidth. void SetEstimatedBitrate(DataRate bitrate); - // Returns time in milliseconds when the current application-limited region - // started or empty result if the sender is currently not application-limited. + // Returns time when the current application-limited region started or empty + // result if the sender is currently not application-limited. std::optional<Timestamp> GetApplicationLimitedRegionStartTime() const; private: