getStats should be allowed on a closed PeerConnection
Categories
(Core :: WebRTC, defect, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox151 | --- | fixed |
| backlog | webrtc/webaudio+ |
People
(Reporter: jib, Assigned: philipp.hancke)
References
(Blocks 1 open bug, )
Details
Attachments
(1 file)
Updated•11 years ago
|
Updated•11 years ago
|
Comment 1•8 years ago
|
||
| Reporter | ||
Comment 2•8 years ago
|
||
| Reporter | ||
Comment 4•8 years ago
|
||
| Reporter | ||
Comment 5•4 years ago
|
||
Here's some newer STRs for this bug that don't require interaction:
Expected result (Chrome):
checking
connected
[object Object]
[object Object]
disconnected
failed
Actual result (Firefox):
checking
connected
[object Object]
undefined
disconnected
failed
| Reporter | ||
Comment 6•4 years ago
|
||
Spec support on preserving stats after transceiver.stop() and pc.close():
"With a few exceptions, monitored objects, once created, exist for the duration of their associated
RTCPeerConnection. This ensures statistics from them are available in the result fromgetStats()even past the associated peer connection beingclosed.Only a few monitored objects have shorter lifetimes. Statistics from these objects are no longer available in subsequent getStats() results. The object descriptions in [WEBRTC-STATS] describe when these monitored objects are deleted. "
"RTP monitored objects are not deleted."
Updated•3 years ago
|
Updated•1 year ago
|
| Assignee | ||
Comment 7•3 months ago
|
||
Is there an ETA? I got a request to polyfill this in adapter.js but adding polyfills without an exit criterion is more harm than good:
https://github.com/webrtcHacks/adapter/issues/1179
| Assignee | ||
Comment 8•3 months ago
|
||
Note: this retains local and remote candidate stats which Chromium does not
and which might violate the specification.
Updated•3 months ago
|
Updated•3 months ago
|
Comment 10•3 months ago
|
||
Comment 11•3 months ago
|
||
Backed out for causing mda failures at getStats peer connection
Backout Link
Push with failures
Failure Log
Failure line TEST-UNEXPECTED-FAIL | dom/media/webrtc/tests/mochitests/test_peerConnection_bug1773067.html | getStats on closed peer connection fails instead of hanging - got undefined, expected "InvalidStateError"
Comment 12•3 months ago
|
||
Comment 13•3 months ago
|
||
| bugherder | ||
| Assignee | ||
Updated•2 months ago
|
Updated•2 months ago
|
Description
•