Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a CSP check to RTCPeerConnection.addIceCandidate(). #81

Merged
merged 14 commits into from
Jun 15, 2022
Merged
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ <h3>
<p>
The {{RTCPeerConnection}}
interface is defined in [[WEBRTC]]. This document extends that interface
by adding an additional static method.
by adding an additional static method, and using Content-Security-Policy
for ICE candidate filtering.
</p>
<pre class="idl">partial interface RTCPeerConnection {
static sequence&lt;RTCIceServer&gt; getDefaultIceServers();
Expand Down Expand Up @@ -139,6 +140,18 @@ <h2>Methods</h2>
</dd>
</dl>
</section>
<section>
<h2>Modifications to existing procedures</h2>

<p>Append the following paragraph to the
<a data-cite="WEBRTC#dfn-administratively-prohibited">administratively prohibited</a>
algorithm:</p>

<p>If <a data-cite="WEBAPPSEC-CSP#should-block-rtc-connection">
should-block-rtc-connection</a> on the current global object returns
jan-ivar marked this conversation as resolved.
Show resolved Hide resolved
"Blocked", all candidates MUST be <a data-cite="WEBRTC#dfn-administratively-prohibited">
zenhack marked this conversation as resolved.
Show resolved Hide resolved
administratively prohibited</a>.</p>
</section>
</section>
<section id="rtcrtptransceiver-interface">
<h3>
Expand Down