Bug 199316 - addIceCandidate({candidate: "", sdpMLineIndex: 0 })) throws an error
Summary: addIceCandidate({candidate: "", sdpMLineIndex: 0 })) throws an error
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebRTC (show other bugs)
Version: Safari 12
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-06-28 03:38 PDT by daginge
Modified: 2019-06-28 03:38 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description daginge 2019-06-28 03:38:21 PDT
What steps will reproduce the problem?
(1) go to https://webrtc.github.io/samples/src/content/peerconnection/pc1/
(2) make a call
(3) paste the following into the JS console
pc2.addIceCandidate({sdpMLineIndex: 0, candidate: ""})

What is the expected result?
The promise resolves.

What happens instead?
an exception is thrown: OperationError: Expect line: candidate:<candidate-str> 

This is a problem since Firefox 69 (at least) started generating those candidates.

This is a duplicate of issue https://bugs.chromium.org/p/chromium/issues/detail?id=978582. Adapter can provide a fix for this, but we would like to make that fix temporary.