tor-browser

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

commit e233c1ebdb6cb0750ab49a0f21287f7dcdc933ef
parent 4ff746d15fadc1deb7a8bd300b66bd4e90766a0c
Author: Dan Baker <dbaker@mozilla.com>
Date:   Wed, 22 Oct 2025 13:37:50 -0600

Bug 1995393 - Vendor libwebrtc from 043e6c3818

Upstream commit: https://webrtc.googlesource.com/src/+/043e6c3818b39055d511167c463b8520a523cb74
    Remove `disable_equivalent_phases` from DoAllocate() and Regather() as it's always set to true.

    Bug: none
    Change-Id: I2e7b8461f3c398a0d7dddbce901bb63bdc3585ae
    Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/402660
    Commit-Queue: Philip Eliasson <philipel@webrtc.org>
    Reviewed-by: Jonas Oreland <jonaso@webrtc.org>
    Cr-Commit-Position: refs/heads/main@{#45280}

Diffstat:
Mthird_party/libwebrtc/README.mozilla.last-vendor | 4++--
Mthird_party/libwebrtc/p2p/client/basic_port_allocator.cc | 30++++++++++++------------------
Mthird_party/libwebrtc/p2p/client/basic_port_allocator.h | 3+--
3 files changed, 15 insertions(+), 22 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-22T19:35:28.029422+00:00. +libwebrtc updated from /Users/danielbaker/elm/.moz-fast-forward/moz-libwebrtc commit mozpatches on 2025-10-22T19:37:39.740511+00:00. # base of lastest vendoring -84990b350f +043e6c3818 diff --git a/third_party/libwebrtc/p2p/client/basic_port_allocator.cc b/third_party/libwebrtc/p2p/client/basic_port_allocator.cc @@ -453,14 +453,11 @@ void BasicPortAllocatorSession::RegatherOnFailedNetworks() { } } - bool disable_equivalent_phases = true; - Regather(failed_networks, disable_equivalent_phases, - IceRegatheringReason::NETWORK_FAILURE); + Regather(failed_networks, IceRegatheringReason::NETWORK_FAILURE); } void BasicPortAllocatorSession::Regather( const std::vector<const Network*>& networks, - bool disable_equivalent_phases, IceRegatheringReason reason) { RTC_DCHECK_RUN_ON(network_thread_); // Remove ports from being used locally and send signaling to remove @@ -474,7 +471,7 @@ void BasicPortAllocatorSession::Regather( if (allocation_started_ && network_manager_started_ && !IsStopped()) { SignalIceRegathering(this, reason); - DoAllocate(disable_equivalent_phases); + DoAllocate(); } } @@ -662,8 +659,7 @@ void BasicPortAllocatorSession::OnAllocate(int allocation_epoch) { return; if (network_manager_started_ && !IsStopped()) { - bool disable_equivalent_phases = true; - DoAllocate(disable_equivalent_phases); + DoAllocate(); } allocation_started_ = true; @@ -798,7 +794,7 @@ std::vector<const Network*> BasicPortAllocatorSession::SelectIPv6Networks( // For each network, see if we have a sequence that covers it already. If not, // create a new sequence to create the appropriate ports. -void BasicPortAllocatorSession::DoAllocate(bool disable_equivalent) { +void BasicPortAllocatorSession::DoAllocate() { RTC_DCHECK_RUN_ON(network_thread_); bool done_signal_needed = false; std::vector<const Network*> networks = GetNetworks(); @@ -837,15 +833,13 @@ void BasicPortAllocatorSession::DoAllocate(bool disable_equivalent) { continue; } - if (disable_equivalent) { - // Disable phases that would only create ports equivalent to - // ones that we have already made. - DisableEquivalentPhases(networks[i], config, &sequence_flags); + // Disable phases that would only create ports equivalent to + // ones that we have already made. + DisableEquivalentPhases(networks[i], config, &sequence_flags); - if ((sequence_flags & DISABLE_ALL_PHASES) == DISABLE_ALL_PHASES) { - // New AllocationSequence would have nothing to do, so don't make it. - continue; - } + if ((sequence_flags & DISABLE_ALL_PHASES) == DISABLE_ALL_PHASES) { + // New AllocationSequence would have nothing to do, so don't make it. + continue; } AllocationSequence* sequence = @@ -892,8 +886,8 @@ void BasicPortAllocatorSession::OnNetworksChanged() { // If the network manager has started, it must be regathering. SignalIceRegathering(this, IceRegatheringReason::NETWORK_CHANGE); } - bool disable_equivalent_phases = true; - DoAllocate(disable_equivalent_phases); + + DoAllocate(); } if (!network_manager_started_) { diff --git a/third_party/libwebrtc/p2p/client/basic_port_allocator.h b/third_party/libwebrtc/p2p/client/basic_port_allocator.h @@ -247,7 +247,7 @@ class RTC_EXPORT BasicPortAllocatorSession : public PortAllocatorSession { void OnConfigStop(); void AllocatePorts(); void OnAllocate(int allocation_epoch); - void DoAllocate(bool disable_equivalent_phases); + void DoAllocate(); void OnNetworksChanged(); void OnAllocationSequenceObjectsCreated(); void DisableEquivalentPhases(const Network* network, @@ -266,7 +266,6 @@ class RTC_EXPORT BasicPortAllocatorSession : public PortAllocatorSession { std::vector<const Network*> GetNetworks(); std::vector<const Network*> GetFailedNetworks(); void Regather(const std::vector<const Network*>& networks, - bool disable_equivalent_phases, IceRegatheringReason reason); bool CheckCandidateFilter(const Candidate& c) const;