Closed Bug 1503023 Opened 6 years ago Closed 6 years ago

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

Categories

(Core :: WebRTC, defect)

defect
Not set
normal

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: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla65
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: