Open
Bug 1586097
Opened 5 years ago
Updated 2 years ago
Invent a way to automatically remove a SourceListener when a gUM request fails
Categories
(Core :: WebRTC: Audio/Video, task, P3)
Core
WebRTC: Audio/Video
Tracking
()
NEW
People
(Reporter: pehrsons, Assigned: pehrsons)
References
Details
Currently we have to manually remove the SourceListener from its window listener in all (sync and async) failure paths from getUserMedia()
and enumerateDevices()
.
We should be able to make something that automatically removes the listener upon destruction. The exception would be the happy path where gUM succeeded, and we'd have to excplicitly opt out of the SourceListener removal.
See bug 1568169 for a case where we had missed a couple of failure paths. It would be easy to regress this again in the future should we keep the current behavior.
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•