tor-browser

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

commit d835f7841db416bde8fa1bdd372a129f60ab5ecb
parent cd426a944e6e13faba3e3dad43ce34d5f93238c5
Author: Dan Baker <dbaker@mozilla.com>
Date:   Mon, 27 Oct 2025 11:34:03 -0600

Bug 1995393 - Vendor libwebrtc from e4fcb52663

Upstream commit: https://webrtc.googlesource.com/src/+/e4fcb5266387a0465588f781159610a594fb49f0
    Use injected clock in schedulable_network_node_builder

    Stops using the global clock methods from time_utils.

    This CL was uploaded by an experimental version of git cl split
    (https://crbug.com/389069356).

    Bug: webrtc:42223992
    Change-Id: I6f1087b665183707f00aa50b32eb6ab026a4ee6a
    Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/405700
    Auto-Submit: Evan Shrubsole <eshr@webrtc.org>
    Reviewed-by: Artem Titov <titovartem@webrtc.org>
    Commit-Queue: Artem Titov <titovartem@webrtc.org>
    Commit-Queue: Evan Shrubsole <eshr@webrtc.org>
    Cr-Commit-Position: refs/heads/main@{#45411}

Diffstat:
Mthird_party/libwebrtc/README.mozilla.last-vendor | 4++--
Mthird_party/libwebrtc/api/test/network_emulation/schedulable_network_node_builder.cc | 8+++++---
2 files changed, 7 insertions(+), 5 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-27T17:30:55.887559+00:00. +libwebrtc updated from /Users/danielbaker/elm/.moz-fast-forward/moz-libwebrtc commit mozpatches on 2025-10-27T17:33:47.952003+00:00. # base of lastest vendoring -a275d3e4af +e4fcb52663 diff --git a/third_party/libwebrtc/api/test/network_emulation/schedulable_network_node_builder.cc b/third_party/libwebrtc/api/test/network_emulation/schedulable_network_node_builder.cc @@ -18,7 +18,6 @@ #include "api/test/network_emulation/network_config_schedule.pb.h" #include "api/test/network_emulation_manager.h" #include "api/units/timestamp.h" -#include "rtc_base/time_utils.h" #include "test/network/schedulable_network_behavior.h" namespace webrtc { @@ -37,8 +36,11 @@ void SchedulableNetworkNodeBuilder::set_start_condition( EmulatedNetworkNode* SchedulableNetworkNodeBuilder::Build( std::optional<uint64_t> random_seed) { - uint64_t seed = random_seed.has_value() ? *random_seed - : static_cast<uint64_t>(TimeNanos()); + uint64_t seed = + random_seed.has_value() + ? *random_seed + : static_cast<uint64_t>( + net_.time_controller()->GetClock()->CurrentTime().ns()); return net_.CreateEmulatedNode(std::make_unique<SchedulableNetworkBehavior>( std::move(schedule_), seed, *net_.time_controller()->GetClock(), std::move(start_condition_)));