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 1 commit
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
10 changes: 9 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 adding a Content-Security-Policy
zenhack marked this conversation as resolved.
Show resolved Hide resolved
check to the constructor.
</p>
<pre class="idl">partial interface RTCPeerConnection {
static sequence&lt;RTCIceServer&gt; getDefaultIceServers();
Expand Down Expand Up @@ -139,6 +140,13 @@ <h2>Methods</h2>
</dd>
</dl>
</section>
<section>
<h2>Modifications to existing procedures</h2>

<p>In the <a data-cite="WEBRTC#dom-peerconnection">Constructor</a> algorithm,
add a step right before step 2 saying "Run [[WEBAPPSEC-CSP#should-block-rtc-connection]]
on the current global object. Throw a {{NotAllowedError}} if it returns `Blocked`."</p>
zenhack marked this conversation as resolved.
Show resolved Hide resolved
</section>
</section>
<section id="rtcrtptransceiver-interface">
<h3>
Expand Down