Implement RTCDataChannel.negotiated
Categories
(Core :: WebRTC: Signaling, enhancement, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox68 | --- | fixed |
People
(Reporter: bwc, Assigned: fabio.alessandrelli)
References
(Blocks 1 open bug)
Details
(Keywords: dev-doc-complete)
Attachments
(1 file, 2 obsolete files)
4.46 KB,
patch
|
Details | Diff | Splinter Review |
Please adjust priority as needed, as I'm unfamiliar with this work.
Updated•6 years ago
|
Assignee | ||
Comment 2•5 years ago
|
||
It seems pretty trivial, I hope I didn't neglect anything, it's my first contribution.
Reporter | ||
Comment 3•5 years ago
|
||
Comment on attachment 9061804 [details] [diff] [review] Expose "RTCDataChannel.negotiated" to Javascript. Review of attachment 9061804 [details] [diff] [review]: ----------------------------------------------------------------- Thanks for the patch! ::: netwerk/sctp/datachannel/DataChannel.h @@ +423,5 @@ > > dom::Nullable<uint16_t> GetMaxRetransmits() const; > > + bool GetNegotiated() { > + return mFlags & DATA_CHANNEL_FLAGS_EXTERNAL_NEGOTIATED; This does not look threadsafe, but then again neither does GetOrdered! I think the threadsafety problems with mFlags need to be fixed first. I have filed bug 1548272 for this cleanup. Stand by...
Reporter | ||
Comment 4•5 years ago
|
||
Once bug 1548272 is fixed, you can take another try at this using GetOrdered as an example. However, bear in mind that there are two test-cases that we currently expect to fail because of this bug:
and
Once your patch is applied, we expect that these test-cases should start working; if so, you can simply remove the bits I highlighted above in testing/web-platform/meta/webrtc/RTCPeerConnection-createDataChannel.html.ini. You can run this test like this:
./mach wpt testing/web-platform/tests/webrtc/RTCPeerConnection-createDataChannel.html
Grep the output for "Unexpected", and that should tell you if everything is still ok.
If one of these test-cases is still failing, then it becomes more complex; I will probably need to figure out whether there is a flaw in the test-case, or if there's some other bug that is causing the test-case to fail, and update the test or .ini file (and maybe file new bugs) as needed.
Assignee | ||
Comment 5•5 years ago
|
||
(In reply to Byron Campen [:bwc] from comment #4)
./mach wpt testing/web-platform/tests/webrtc/RTCPeerConnection-createDataChannel.html
Grep the output for "Unexpected", and that should tell you if everything is still ok.
If one of these test-cases is still failing, then it becomes more complex; I will probably need to figure out whether there is a flaw in the test-case, or if there's some other bug that is causing the test-case to fail, and update the test or .ini file (and maybe file new bugs) as needed.
[createDataChannel with negotiated true should succeed]
succedes.
[createDataChannel attribute default values]
still fails, but with another error:
assert_equals: expected (string) "low" but got (undefined) undefined
Due to another missing property (priority
): assert_equals(channel.priority, 'low');
Reporter | ||
Comment 6•5 years ago
|
||
(In reply to Fabio Alessandrelli from comment #5)
(In reply to Byron Campen [:bwc] from comment #4)
./mach wpt testing/web-platform/tests/webrtc/RTCPeerConnection-createDataChannel.html
Grep the output for "Unexpected", and that should tell you if everything is still ok.
If one of these test-cases is still failing, then it becomes more complex; I will probably need to figure out whether there is a flaw in the test-case, or if there's some other bug that is causing the test-case to fail, and update the test or .ini file (and maybe file new bugs) as needed.
[createDataChannel with negotiated true should succeed]
succedes.
[createDataChannel attribute default values]
still fails, but with another error:
assert_equals: expected (string) "low" but got (undefined) undefined
Due to another missing property (priority
):assert_equals(channel.priority, 'low');
Ok, so that's bug 1531100, so for that chunk in the .ini file you would change the bug link to https://bugzilla.mozilla.org/show_bug.cgi?id=1531100
Assignee | ||
Comment 7•5 years ago
|
||
Updated patch, reads values from ctor, update tests ini file.
Reporter | ||
Comment 8•5 years ago
|
||
Comment on attachment 9063972 [details] [diff] [review] Bug 1529695: Implement RTCDataChannel.negotiated Review of attachment 9063972 [details] [diff] [review]: ----------------------------------------------------------------- Ok, this all looks good. Since this work involves updating the webidl file, you will also need to ask for review from a DOM peer. I usually ask smaug. In the meantime, I will push this to the try servers for you.
Reporter | ||
Comment 9•5 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=4a9e43cbc96960066ad3ea1ba2547796ce2613a4
Reporter | ||
Updated•5 years ago
|
Reporter | ||
Updated•5 years ago
|
Updated•5 years ago
|
Reporter | ||
Comment 10•5 years ago
|
||
It looks like some additional web-platform-tests stuff needs to be marked as passing now.
Reporter | ||
Updated•5 years ago
|
Updated•5 years ago
|
Assignee | ||
Comment 11•5 years ago
|
||
Tested on whole testing/web-platform/tests/webrtc/
folder.
Removed 2 expected failures which now succeeds.
Reporter | ||
Comment 12•5 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=dcd968bc2db47e973c6f2a85fcc9533d77d9e8be
Assignee | ||
Comment 13•5 years ago
|
||
Build seems okay, do I need to take any further action?
Reporter | ||
Comment 14•5 years ago
|
||
I think you should be good to go. Marking checkin-needed.
Comment 15•5 years ago
|
||
Pushed by archaeopteryx@coole-files.de:
https://hg.mozilla.org/integration/mozilla-inbound/rev/3235df251814
Implement RTCDataChannel.negotiated. r=bwc,smaug
Comment 16•5 years ago
|
||
bugherder |
Comment 17•5 years ago
|
||
The following changes have been made to documentation:
- Added text and code snippets to the Creating a data channel section in the "Using data channels" guide; this describes both automatic and manual negotiation
- Submitted BCD PR 4324 adding
negotiated
toRTCDataChannel
in Firefox 68 - Updated
negotiated
page with new information and a code sample
Description
•