-
Notifications
You must be signed in to change notification settings - Fork 845
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
RTCIceCandidate constructor shim throwing error if ufrag given for Firefox beta (111) #1122
Comments
@jan-ivar Firefox breaking like this doesn't sound good? Past attempts by Chromium to enforce read-onlyness of attributes (in particular RTCSessionDescription's |
Related Firefox bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1812346 |
The bug is in adapter.js here: const nativeCandidate = new NativeRTCIceCandidate(args);
const parsedCandidate = SDPUtils.parseCandidate(args.candidate);
→ const augmentedCandidate = Object.assign(nativeCandidate, parsedCandidate); // TypeError TIL the difference between:
This fiddle shows the latter throwing in all browsers including Firefox 111+, so unfortunately this shim, which was specific to Firefox, was relying on non-standard behavior of Firefox 110 and earlier. We'll back out the fix that broke adapter in Firefox 111 beta for now, to give adapter time to fix this, and for all users of adapter to update (which may be a while). |
The fix is going to say
right? Adoption is going to be a problem, there is still a lot of usage on version 7 and not even 8. |
That would return the wrong type I fear. [Deleted: pilot error since I forgot RTCIceCandidate has a custom toJSON] Agreed about adoption. |
Thank you for backing this out @jan-ivar! I agree with the plan to reland we lets still try to get #1123 out |
Please read first!
Please use discuss-webrtc for general technical discussions and questions.
Note: If the checkboxes above are not checked (which you do after the issue is posted), the issue will be closed.
Versions affected
Firefox (Beta) version 111.0b3 (64-bit)
[email protected]
Description
RTCIceCandidate() constructor throws the below error when ufrag supplied on the candidate line.
TypeError: setting getter-only property "usernameFragment"
RTCIceCandidate common_shim.js:35
debugger eval code:1
Error is not seen in current stable Firefox (v110). No error is thrown if ufrag is not given.
Steps to reproduce
Try creating RTCIceCandidate using the following candidateInfo:
Expected results
Newly created RTCIceCandidate object returned.
Actual results
The following error is thrown:
TypeError: setting getter-only property "usernameFragment"
RTCIceCandidate common_shim.js:35
debugger eval code:1
The text was updated successfully, but these errors were encountered: