Doing SRD twice on the answerer (which is [allowed](https://w3c.github.io/webrtc-pc/#rtcsignalingstate-enum)), causes ICE gathering to jump the gate, firing answer candidates ahead of answer. STRs: 1. Open https://jsfiddle.net/jib1/gjcms01p/ and share camera Expected results: ``` pc2.SRD DONE pc2.SRD TWICE DONE stable pc2.SLD DONE pc2.onicecandidate in stable pc2.onicecandidate in stable ``` Actual results: ``` pc2.SRD DONE pc2.SRD TWICE DONE pc2.onicecandidate in have-remote-offer BOOOH! pc1.addIce: InvalidStateError: Cannot add ICE candidate when there is no remote SDP stable pc2.SLD DONE pc2.onicecandidate in stable ``` Regression range: 45:19.27 INFO: Narrowed inbound regression window from [442f57db, f829ca2e] (4 builds) to [fde54097, f829ca2e] (2 builds) (~1 steps left) 45:19.27 INFO: No more inbound revisions, bisection finished. 45:19.27 INFO: Last good revision: fde540977b4e52dd21031777aa35906ff81d6e63 45:19.27 INFO: First bad revision: f829ca2e1ad6d637eb01f5cbe50876f22fe53c37 45:19.27 INFO: Pushlog: https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=fde540977b4e52dd21031777aa35906ff81d6e63&tochange=f829ca2e1ad6d637eb01f5cbe50876f22fe53c37
Bug 1629565 Comment 0 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
Doing SRD twice on the answerer (which is [allowed](https://w3c.github.io/webrtc-pc/#rtcsignalingstate-enum)), causes ICE gathering to jump the gate, firing answer candidates ahead of answer. This is [against spec](https://w3c.github.io/webrtc-pc/#ref-for-dfn-release-early-candidates-2). STRs: 1. Open https://jsfiddle.net/jib1/gjcms01p/ and share camera Expected results: ``` pc2.SRD DONE pc2.SRD TWICE DONE stable pc2.SLD DONE pc2.onicecandidate in stable pc2.onicecandidate in stable ``` Actual results: ``` pc2.SRD DONE pc2.SRD TWICE DONE pc2.onicecandidate in have-remote-offer BOOOH! pc1.addIce: InvalidStateError: Cannot add ICE candidate when there is no remote SDP stable pc2.SLD DONE pc2.onicecandidate in stable ``` Regression range: 45:19.27 INFO: Narrowed inbound regression window from [442f57db, f829ca2e] (4 builds) to [fde54097, f829ca2e] (2 builds) (~1 steps left) 45:19.27 INFO: No more inbound revisions, bisection finished. 45:19.27 INFO: Last good revision: fde540977b4e52dd21031777aa35906ff81d6e63 45:19.27 INFO: First bad revision: f829ca2e1ad6d637eb01f5cbe50876f22fe53c37 45:19.27 INFO: Pushlog: https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=fde540977b4e52dd21031777aa35906ff81d6e63&tochange=f829ca2e1ad6d637eb01f5cbe50876f22fe53c37