tor-browser

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

commit ab81fc29e02545f15964faa5f16a7676560565ef
parent 7c4f8c6c3ca0216842fc9c5c5de53da2a4df55c5
Author: Dan Baker <dbaker@mozilla.com>
Date:   Thu, 23 Oct 2025 17:40:27 -0600

Bug 1995393 - Vendor libwebrtc from 114566aba4

Upstream commit: https://webrtc.googlesource.com/src/+/114566aba48df6677f2dcc9d850ac21f306621a1
    Replace erase-remove idiom with std::erase and std::erase_if (4)

    Bug: webrtc:438403372
    Change-Id: I53f9fdb602dbb637c256c4f5eb629df13e022de8
    Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/405121
    Reviewed-by: Kári Helgason <kthelgason@webrtc.org>
    Commit-Queue: Kári Helgason <kthelgason@webrtc.org>
    Cr-Commit-Position: refs/heads/main@{#45384}

Diffstat:
Mthird_party/libwebrtc/README.mozilla.last-vendor | 4++--
Mthird_party/libwebrtc/sdk/objc/components/audio/RTCAudioSession.mm | 11+++--------
2 files changed, 5 insertions(+), 10 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-23T23:37:56.315257+00:00. +libwebrtc updated from /Users/danielbaker/elm/.moz-fast-forward/moz-libwebrtc commit mozpatches on 2025-10-23T23:40:15.076596+00:00. # base of lastest vendoring -ffde1c8637 +114566aba4 diff --git a/third_party/libwebrtc/sdk/objc/components/audio/RTCAudioSession.mm b/third_party/libwebrtc/sdk/objc/components/audio/RTCAudioSession.mm @@ -244,9 +244,7 @@ ABSL_CONST_INIT thread_local bool mutex_locked = false; return; } @synchronized(self) { - _delegates.erase( - std::remove(_delegates.begin(), _delegates.end(), delegate), - _delegates.end()); + std::erase(_delegates, delegate); [self removeZeroedDelegates]; } } @@ -669,11 +667,8 @@ ABSL_CONST_INIT thread_local bool mutex_locked = false; - (void)removeZeroedDelegates { @synchronized(self) { - _delegates.erase( - std::remove_if(_delegates.begin(), - _delegates.end(), - [](id delegate) -> bool { return delegate == nil; }), - _delegates.end()); + std::erase_if(_delegates, + [](id delegate) -> bool { return delegate == nil; }); } }