Closed Bug 1503023 Opened Last year Closed Last year

An invalid state error can arise when a PeerConnection is closed before its certificates are initialized

Categories

(Core :: WebRTC, defect)

defect
Not set

Tracking

()

RESOLVED FIXED
mozilla65
Tracking Status
firefox65 --- fixed

People

(Reporter: ng, Assigned: ng)

Details

Attachments

(1 file)

When a PeerConnection is created, an async task is spawned to initialize the certificates. If the PeerConnection is closed before this task finishes, like in the case of very fast Web Platform Tests, an error message can be logged. This failure is not observable from JS so the fix will need to be hand verified.
Ensure that a PeerConnection is still open before setting the certificates.
Pushed by na-g@nostrum.com:
https://hg.mozilla.org/integration/autoland/rev/109edc697841
After waiting for certs make sure the PeerConnection still exists r=jib
https://hg.mozilla.org/mozilla-central/rev/109edc697841
Status: ASSIGNED → RESOLVED
Closed: Last year
Resolution: --- → FIXED
Target Milestone: --- → mozilla65
You need to log in before you can comment on or make changes to this bug.