[Webkit-unassigned] [Bug 173118] New: RTCPeerConnection returns RTCSessionDescription where RTCSessionDescriptionInit would be appropriate

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jun 8 15:30:32 PDT 2017


https://bugs.webkit.org/show_bug.cgi?id=173118

            Bug ID: 173118
           Summary: RTCPeerConnection returns RTCSessionDescription where
                    RTCSessionDescriptionInit would be appropriate
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: Macintosh
                OS: macOS 10.12
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: New Bugs
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: stefanf at boinx.com

Overview:
Calls to createOffer (and possibly createAnswer, too) on instances of RTCPeerConnection return a Promise<RTCSessionDescription> instead of the Promise<RTCSessionDescriptionInit> (note the -Init) as per spec (https://w3c.github.io/webrtc-pc/archives/20160513/webrtc.html#interface-definition).

Steps to Reproduce:
1. Open codepen https://codepen.io/anon/pen/jwWPMq?editors=1011 in Safari TP 33
2. Notice how the function fails to log the second line because offer.sdp cannot be set on RTCSessionDescriptions

Actual Result:
RTCPeerConnection#createOffer returns a Promise that resolves to a RTCSessionDescription object with readonly properties.

Expected Result:
RTCSessionDescriptions returned from createOffer (and possibly createAnswer, untested) should be RTCSessionDescriptionInits instead so that the properties can be modified.

This breaks not only our internal code that I cannot disclose here (hence the codepen), but also sites like https://webrtc.github.io/samples/src/content/peerconnection/munge-sdp/.

Build Date & Hardware:
Safari TP 33 on macOS 10.12.5

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170608/8d7aa840/attachment.html>


More information about the webkit-unassigned mailing list