W3C home > Mailing lists > Public > public-webrtc@w3.org > September 2017

[webrtc-pc] createDataChannel touches DOM "in the background"

From: jan-ivar via GitHub <sysbot+gh@w3.org>
Date: Wed, 13 Sep 2017 19:38:02 +0000
To: public-webrtc@w3.org
Message-ID: <issues.opened-257496711-1505331471-sysbot+gh@w3.org>
jan-ivar has just created a new issue for https://github.com/w3c/webrtc-pc:

== createDataChannel touches DOM "in the background" ==
[createDataChannel](https://rawgit.com/w3c/webrtc-pc/master/webrtc.html#dom-rtcpeerconnection-createdatachannel) says: *"Return channel and continue the following steps in the background."*

First, it should be "[in parallel](https://html.spec.whatwg.org/#in-parallel)".

Second, the in parallel steps must [queue a task](https://html.spec.whatwg.org/#queue-a-task) to run the [update the negotiation-needed flag for connection](https://rawgit.com/w3c/webrtc-pc/master/webrtc.html#dfn-update-the-negotiation-needed-flag) algorithm which touches DOM stuff (we can't touch DOM stuff in parallel with JS).

Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/1597 using your GitHub account
Received on Wednesday, 13 September 2017 19:37:57 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 15:19:51 UTC