Closed Bug 1377884 Opened 7 years ago Closed 6 years ago

addTrack with an already added track throws InvalidParameterError instead of InvalidStateError

Categories

(Core :: WebRTC, enhancement, P2)

55 Branch
enhancement

Tracking

()

RESOLVED DUPLICATE of bug 1290948

People

(Reporter: fippo, Unassigned)

Details

(Keywords: stale-bug)

repro fiddle: https://jsfiddle.net/ctLusg85/
calling
  pc.addTrack(track, stream);
  pc.addTrack(track, stream);
throws an InvalidParameterError. Should be InvalidAccessError per http://w3c.github.io/webrtc-pc/#dom-rtcpeerconnection-addtrack step 5

One of many places probably as jib suggests: https://dxr.mozilla.org/mozilla-central/search?q=InvalidParameterError&case=true&=mozilla-central
Low-hanging fruit for passing a WPT test.
Severity: enhancement → normal
Rank: 19
Priority: -- → P1
This is a P1 bug without an assignee. 

P1 are bugs which are being worked on for the current release cycle/iteration/sprint. 

If the bug is not assigned by Monday, 28 August, the bug's priority will be reset to '--'.
Keywords: stale-bug
Mass change P1->P2 to align with new Mozilla triage process
Priority: P1 → P2
Fixed by bug 1290948.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.