Commit 3fba1c9
RTCRtpSender should allow maxFramerate of 0
https://bugs.webkit.org/show_bug.cgi?id=307227
rdar://169863687
Reviewed by Philippe Normand.
This patch aligns WebKit with Gecko / Firefox, Blink / Chromium and
Web Specification [1].
This patch updates our validation from <= to just < since we should just
reject negative values. Previously, we were also rejecting when maxFramerate
was '0', which is not aligned with below specification referenced:
"Verify that the value of each maxFramerate member in sendEncodings that
is defined is greater than 0.0."
[1] https://w3c.github.io/webrtc-pc/#dfn-addtransceiver-sendencodings-validation-steps
* Source/WebCore/Modules/mediastream/RTCPeerConnection.cpp:
(WebCore::validateSendEncodings):
* LayoutTests/imported/w3c/web-platform-tests/webrtc/RTCRtpParameters-maxFramerate-expected.txt: Progression
Canonical link: https://commits.webkit.org/307034@main1 parent a1805f2 commit 3fba1c9
File tree
2 files changed
+4
-4
lines changed- LayoutTests/imported/w3c/web-platform-tests/webrtc
- Source/WebCore/Modules/mediastream
2 files changed
+4
-4
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
213 | | - | |
214 | | - | |
| 213 | + | |
| 214 | + | |
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
| |||
0 commit comments