tor-browser

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

commit 078e42c3e5d32448a591cf278679e7e08f569a71
parent 43dfa288fed371fa5458c786e4ec787ab17fb02f
Author: Dan Baker <dbaker@mozilla.com>
Date:   Mon, 27 Oct 2025 17:20:45 -0600

Bug 1995393 - Vendor libwebrtc from d314bf1332

Upstream commit: https://webrtc.googlesource.com/src/+/d314bf13321c0b53dea6ce482d862ed786cd8c24
    Use AVAudioSessionCategoryOptionAllowBluetoothHFP for newer ios/xcode versions

    Change-Id: Ie5fbbd57921488a08181811cd29f527191e44d78
    Bug: webrtc:441899928
    Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/407406
    Reviewed-by: Henrik Andreassson <henrika@webrtc.org>
    Commit-Queue: Jeremy Leconte <jleconte@google.com>
    Cr-Commit-Position: refs/heads/main@{#45517}

Diffstat:
Mthird_party/libwebrtc/README.mozilla.last-vendor | 4++--
Mthird_party/libwebrtc/sdk/objc/components/audio/RTCAudioSessionConfiguration.m | 5+++++
2 files changed, 7 insertions(+), 2 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-27T23:18:24.692716+00:00. +libwebrtc updated from /Users/danielbaker/elm/.moz-fast-forward/moz-libwebrtc commit mozpatches on 2025-10-27T23:20:33.501802+00:00. # base of lastest vendoring -c4bf158fa2 +d314bf1332 diff --git a/third_party/libwebrtc/sdk/objc/components/audio/RTCAudioSessionConfiguration.m b/third_party/libwebrtc/sdk/objc/components/audio/RTCAudioSessionConfiguration.m @@ -60,7 +60,12 @@ static RTC_OBJC_TYPE(RTCAudioSessionConfiguration) *gWebRTCConfiguration = nil; // nonmixable, hence activating the session will interrupt any other // audio sessions which are also nonmixable. _category = AVAudioSessionCategoryPlayAndRecord; +#if defined(__IPHONE_26_0) && __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_26_0 + _categoryOptions = AVAudioSessionCategoryOptionAllowBluetoothHFP; +#else + // Use the deprecated option on older SDKs. _categoryOptions = AVAudioSessionCategoryOptionAllowBluetooth; +#endif // Specify mode for two-way voice communication (e.g. VoIP). _mode = AVAudioSessionModeVoiceChat;