WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
121102
MediaStream API: Update RTCDataChannel
https://bugs.webkit.org/show_bug.cgi?id=121102
Summary
MediaStream API: Update RTCDataChannel
Eric Carlson
Reported
2013-09-10 10:58:17 PDT
The spec was updated to include a "DataChannelInit" parameter in the RTCDataChannelInit dictionary:
http://dev.w3.org/2011/webrtc/editor/webrtc.html#idl-def-RTCDataChannelInit
Blink/Chromium changes here -
https://chromium.googlesource.com/chromium/blink/+/c6975c41956acded7cf0363012d7d6b69d0c6d96
and
https://chromium.googlesource.com/chromium/blink/+/214dab0bd6385f573c918ba5ce58a5aa206ce186
Attachments
Proposed patch
(16.60 KB, patch)
2013-09-13 23:39 PDT
,
Eric Carlson
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Eric Carlson
Comment 1
2013-09-13 22:39:17 PDT
It make sense to also merge
https://chromium.googlesource.com/chromium/blink/+/c3862b0a83e20fc8b1f770c7e4a886a7cceb80d2
(
https://webkit.org/b/121104
) here.
Eric Carlson
Comment 2
2013-09-13 23:39:08 PDT
Created
attachment 211627
[details]
Proposed patch
Eric Carlson
Comment 3
2013-09-14 16:11:30 PDT
I will need to update this patch once
bug 120889
lands.
Sam Weinig
Comment 4
2013-09-14 16:59:59 PDT
Comment on
attachment 211627
[details]
Proposed patch View in context:
https://bugs.webkit.org/attachment.cgi?id=211627&action=review
> Source/WebCore/Modules/mediastream/RTCDataChannel.cpp:68 > + if (options.get("id", value)) > + initData.id = value; > + if (options.get("maxRetransmits", value)) > + initData.maxRetransmits = value; > + if (options.get("maxRetransmitTime", value)) > + initData.maxRetransmitTime = value;
Can these be written without the if? Just options.get("id", initData.id)), etc?
> Source/WebCore/Modules/mediastream/RTCDataChannel.cpp:72 > + String protocolString; > + options.get("protocol", protocolString); > + initData.protocol = protocolString;
Can this be written as options.get("protocol", initData.protocol); ?
> Source/WebCore/Modules/mediastream/RTCDataChannel.cpp:143 > + DEFINE_STATIC_LOCAL(String, connectingState, ("connecting", AtomicString::ConstructFromLiteral)); > + DEFINE_STATIC_LOCAL(String, openState, ("open", AtomicString::ConstructFromLiteral)); > + DEFINE_STATIC_LOCAL(String, closingState, ("closing", AtomicString::ConstructFromLiteral)); > + DEFINE_STATIC_LOCAL(String, closedState, ("closed", AtomicString::ConstructFromLiteral));
Can we use NeverDestroyed<> instead?
Eric Carlson
Comment 5
2013-09-14 19:32:17 PDT
Committed
r155794
:
https://trac.webkit.org/r155794
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug