Closed Bug 895876 Opened 13 years ago Closed 13 years ago

createDataChannel should not allow setting the id when negotiation is false

Categories

(Core :: WebRTC: Signaling, defect)

defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: standard8, Assigned: jesup)

Details

createDataChannel has a dict as arguments. Currently, when setting the id, it doesn't warn/throw that negotiation should be true as well, potentially leading to mistakes by developers.
My apologies: per the spec, you can set id even if you don't set negotiated=true. If so, it uses the channel you requested, and sends an OPEN message on it so the other side will see ondatachannel. The application must be careful to avoid collisions....
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.