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

Make RTCIceCandidatePair members required #2951

Merged
merged 1 commit into from
Mar 28, 2024
Merged

Make RTCIceCandidatePair members required #2951

merged 1 commit into from
Mar 28, 2024

Conversation

foolip
Copy link
Member

@foolip foolip commented Mar 27, 2024

In webrtc-pc this dictionary is only used as a return type of getSelectedCandidatePair(), which will include both local and remote. This is not a problem.

In https://w3c.github.io/webrtc-extensions/#rtcicetransport the dictionary is used as a non-optional argument, and Web IDL requires that dictionary arguments are optional if there are no required members. Fix this by making them required.


Preview | Diff

In webrtc-pc this dictionary is only used as a return type of getSelectedCandidatePair(), which will include both local and remote. This is not a problem.

In https://w3c.github.io/webrtc-extensions/#rtcicetransport the dictionary is used as a non-optional argument, and Web IDL requires that dictionary arguments are optional if there are no required members. Fix this by making them required.
Copy link
Member

@jan-ivar jan-ivar left a comment

Choose a reason for hiding this comment

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

LGTM. FYI see also #2930.

@youennf youennf merged commit 6e18405 into w3c:main Mar 28, 2024
3 of 4 checks passed
@foolip foolip deleted the patch-1 branch March 28, 2024 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants