Closed
Bug 1685833
Opened 5 years ago
Closed 5 years ago
pc.restartIce() doesn't work with zero-argument pc.setLocalDescription()
Categories
(Core :: WebRTC: Signaling, defect, P2)
Tracking
()
RESOLVED
FIXED
86 Branch
People
(Reporter: jib, Assigned: jib)
References
(Regression)
Details
(Keywords: regression)
Attachments
(2 files)
STRs:
- Open https://jsfiddle.net/jib1/9Lpdwxrg/
- Check the first
☑ CameraONN gathering onicecandidate: dc948bce onicecandidate: dc948bce onicecandidate: dc948bce onicecandidate: dc948bce onicecandidate: dc948bce complete addIceCandidate: d3abc55f addIceCandidate: d3abc55f addIceCandidate: d3abc55f - Click the first
Restartbutton
Expected result:
ONN
gathering
onicecandidate: 8b804542
onicecandidate: 8b804542
onicecandidate: 8b804542
onicecandidate: 8b804542
onicecandidate: 8b804542
complete
addIceCandidate: d7f75240
addIceCandidate: d7f75240
addIceCandidate: d7f75240
Actual results:
ONN
ONN
ONN
ONN
ONN
ONN
ONN
ONN
ONN
ONN
ONN
ONN
...
Workaround:
Uncomment the following code on line 58:
await pc.setLocalDescription(/* await pc.createOffer() */);
The bug is the zero-argument version of setLocalDescription fails to trigger ICE restart properly, doing a regular negotiation instead, after which ONN triggers again, ad infinitum.
| Assignee | ||
Comment 1•5 years ago
|
||
[Tracking Requested - why for this release]: Embarrassing behavioral flaw in restartIce() pattern which was designed for perfect negotiation. Would like this fixed for upcoming blog post.
Assignee: nobody → jib
Severity: -- → S3
status-firefox84:
--- → affected
status-firefox85:
--- → affected
status-firefox86:
--- → affected
status-firefox-esr78:
--- → affected
tracking-firefox85:
--- → ?
tracking-firefox86:
--- → ?
tracking-firefox-esr78:
--- → ?
Component: WebRTC → WebRTC: Signaling
Priority: -- → P2
Regressed by: 1568292
Updated•5 years ago
|
Has Regression Range: --- → yes
| Assignee | ||
Comment 2•5 years ago
|
||
| Assignee | ||
Comment 3•5 years ago
|
||
Depends on D101254
Updated•5 years ago
|
Comment 4•5 years ago
|
||
This bug has been around since 75 and not reported until now, doesn't seem warranted to track for 85.
Pushed by jbruaroey@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/da549b4201cc
Test both zero and 1-argument SLD in RTCPeerConnection-restartIce.https.html r=bwc
https://hg.mozilla.org/integration/autoland/rev/a9556ebc4a04
Make zero-argument version of setLocalDescription() respect restartIce() method. r=bwc
Failed to create upstream wpt PR due to merge conflicts. This requires fixup from a wpt sync admin.
Comment 7•5 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/da549b4201cc
https://hg.mozilla.org/mozilla-central/rev/a9556ebc4a04
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 86 Branch
Updated•5 years ago
|
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/27484 for changes under testing/web-platform/tests
Upstream PR merged by moz-wptsync-bot
Updated•5 years ago
|
Flags: in-testsuite+
Updated•5 years ago
|
Keywords: regression
You need to log in
before you can comment on or make changes to this bug.
Description
•