Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: a9175c0e866a35837e9ecb9f70fe6f45201efa00
      
https://github.com/WebKit/WebKit/commit/a9175c0e866a35837e9ecb9f70fe6f45201efa00
  Author: Youenn Fablet <[email protected]>
  Date:   2025-09-09 (Tue, 09 Sep 2025)

  Changed paths:
    M Source/ThirdParty/libwebrtc/Configurations/libwebrtc.exp
    M Source/ThirdParty/libwebrtc/libwebrtc.xcodeproj/project.pbxproj
    M Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.cpp
    M Source/WebCore/platform/mediastream/libwebrtc/LibWebRTCProvider.cpp
    M Source/WebCore/platform/mediastream/libwebrtc/LibWebRTCProvider.h
    M Source/WebCore/platform/mediastream/libwebrtc/LibWebRTCProviderCocoa.cpp

  Log Message:
  -----------
  Use webrtc Environment to set the task queue factory
https://bugs.webkit.org/show_bug.cgi?id=298534
rdar://160109453

Reviewed by Jean-Yves Avenard.

We remove usage of static field trials, as they are removed from M140.
Instead we use a custom field trial given to the webrtc environment.
We update the L4S handling accordingly and this allows to no longer use a 
static field: we clear the peer connection factory if the L4S flag is changing.

We also do the same for the task queue fatory given it is also removed from 
peer connection dependencies in M140.
This requires using CreateModularPeerConnectionFactory and we have to create by 
hand the webrtc::PeerConnectionFactoryDependencies object.
We align with the APIs that Chrome is using.

Covered by existing tests.

* Source/ThirdParty/libwebrtc/Configurations/libwebrtc.exp:
* Source/ThirdParty/libwebrtc/libwebrtc.xcodeproj/project.pbxproj:
* Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.cpp:
(WebCore::LibWebRTCMediaEndpoint::LibWebRTCMediaEndpoint):
* Source/WebCore/platform/mediastream/libwebrtc/LibWebRTCProvider.cpp:
(WebCore::LibWebRTCProvider::setUseL4S):
(WebCore::LibWebRTCProvider::createPeerConnectionFactory):
* Source/WebCore/platform/mediastream/libwebrtc/LibWebRTCProvider.h:
* Source/WebCore/platform/mediastream/libwebrtc/LibWebRTCProviderCocoa.cpp:
(WebCore::WebRTCProvider::webRTCAvailable):

Canonical link: https://commits.webkit.org/299742@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to