Closed Bug 859471 Opened 11 years ago Closed 6 years ago

Sending a message in data channels with an empty string - silent failure without developer notification

Categories

(Core :: WebRTC: Networking, defect, P4)

defect

Tracking

()

RESOLVED DUPLICATE of bug 1315782

People

(Reporter: jsmith, Assigned: jesup)

Details

(Whiteboard: [spec-issue])

Attachments

(1 file)

Attached file Data Channel Test
STR:

1. Load the attached test case
2. Select Setup Handshake
3. Select Local DC Send String Message
4. Look at the web console and error console

Expected:

This is debatable, but if I try to called to send with no data provided, I would likely expect that some sort of error or warning would be fired. We probably shouldn't send the data over to the other channel either, given that there's no data to be sent.

Actual:

Calling send with an empty string silently fails without developer notification - no onMessage event fires on the other channel either. It might make sense to not call onMessage with a message with no data, but if that case happens, I would expect that providing no data into the send parameter would result in an error.
Need to define in the spec what should happen.
Assignee: nobody → rjesup
Priority: -- → P3
Whiteboard: [WebRTC] [blocking-webrtc-][spec-issue]
backlog: --- → webRTC+
Rank: 35
Whiteboard: [WebRTC] [blocking-webrtc-][spec-issue] → [spec-issue]
Mass change P3->P4 to align with new Mozilla triage process.
Priority: P3 → P4
Duplicate of bug 1315782
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.

Attachment

General

Created:
Updated:
Size: