This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 25840 - Creating DataChannel with same label.
Summary: Creating DataChannel with same label.
Status: RESOLVED FIXED
Alias: None
Product: WebRTC Working Group
Classification: Unclassified
Component: WebRTC API (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Web RTC Working Group
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-20 21:21 UTC by Kiran
Modified: 2014-06-09 08:41 UTC (History)
2 users (show)

See Also:


Attachments

Description Kiran 2014-05-20 21:21:44 UTC
This check is missing.

Proposed Resolution
•Fire a ResourceInUseError.
Comment 1 Adam Bergkvist 2014-05-21 13:42:07 UTC
The app is allowed to do this.
Comment 2 Kiran 2014-05-21 20:25:14 UTC
This bug has been re-opened for tracking 

While discussing interoperability issues in interim meeting, it has been pointed that spec should be updated to clarify that label is not unique.


19:19:05 [stefanh]
First: Data channel label uniqeuness
19:19:32 [stefanh]
prop: update the spec to say do not have to be unique

I suggest to add a note specifying "Multiple channels may contain same label".

or 

add a line after explanation

The RTCDataChannel.label attribute represents a label that can be used to distinguish this RTCDataChannel object from other RTCDataChannel objects. The attribute MUST return the value to which it was set when the RTCDataChannel object was created.
 "JS applications are allowed to create multiple channels with same label"
Comment 3 Adam Bergkvist 2014-06-09 08:41:39 UTC
Proposed fix: https://github.com/fluffy/webrtc-w3c/commit/6076fe5f3cd4ad48085097aed17c39abf4b73533

Closing bug. Reopen again if necessary.