Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stable30] Empty iceServers.urls handling fix (reloaded) #14291

Merged
merged 1 commit into from
Feb 5, 2025

Conversation

backportbot[bot]
Copy link

@backportbot backportbot bot commented Feb 5, 2025

Backport of PR #14289

According to https://www.w3.org/TR/webrtc/#set-the-configuration browser
should throw SyntaxError when starting call with `iceServers` defined
with empty `urls`.

Talk may call `RTCPeerConnection` with empty `iceServers[0].urls` when
no STUN nor TURN servers are configured (tested with HPB) what makes
Firefox to throw errors like

`RTCPeerConnection constructor passed invalid RTCConfiguration - urls is empty SyntaxError`.

With this fix Talk will no longer generate STUN and TURN server settings
with empty (or invalid) `urls`.

Author-Change-Id: IB#1125985
Signed-off-by: Pawel Boguslawski <[email protected]>
Signed-off-by: Daniel Calviño Sánchez <[email protected]>
@backportbot backportbot bot added 3. to review bug feature: settings ⚙️ Settings and config related issues feature: signaling 📶 Internal and external signaling backends labels Feb 5, 2025
@backportbot backportbot bot added this to the 🌠 Next Patch (30) milestone Feb 5, 2025
Copy link
Member

@danxuliu danxuliu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and works 👍

@danxuliu danxuliu merged commit f17cb02 into stable30 Feb 5, 2025
68 checks passed
@danxuliu danxuliu deleted the backport/14289/stable30 branch February 5, 2025 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review bug feature: settings ⚙️ Settings and config related issues feature: signaling 📶 Internal and external signaling backends
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants