RTCPeerConnection.close throws in WPT
Categories
(Firefox :: Untriaged, defect, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox94 | --- | fixed |
People
(Reporter: philipp.hancke, Assigned: jib)
Details
Attachments
(2 files)
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0
Steps to reproduce:
https://github.com/web-platform-tests/wpt/pull/30213
was flaky in Firefox. I did some investigation in
https://bugs.chromium.org/p/webrtc/issues/detail?id=13148
and it looks like RTCPeerConnection.close() is throwing an error because its implementation is gone.
Expected results:
https://searchfox.org/mozilla-central/source/dom/media/PeerConnection.jsm#1529
should probably catch this error and ignore it.
Assignee | ||
Comment 1•3 years ago
•
|
||
Thanks Philipp for filing! I'm able to repro with http://jsfiddle.net/jib1/u5tmrwf6/
I've located what I think is the problem: pc.close()
deletes this._pc
here, and SRD is referencing its glorified getter this._impl.
in a few places asynchronously.
There are 41 hits for this._impl.
and they should all be protected by checks against "closed"
state. A few appear missing, e.g. restartIce (spec looks fine there though).
Assignee | ||
Comment 2•3 years ago
|
||
Assignee | ||
Comment 3•3 years ago
|
||
Depends on D124842
Comment 5•3 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/b50031080353
https://hg.mozilla.org/mozilla-central/rev/257ce52af62b
Description
•