Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

// META: script=/common/get-host-info.sub.js
// META: script=/content-security-policy/webrtc/webrtc.js
//
// The following tests assume the policy `Connection-Allowlist:
// (response-origin);webrtc=block` has been set.
promise_test(async (t) => {
assert_equals(await tryConnect(), 'blocked');
}, 'Test that webrtc=block Connection-Allowlist param is respected.');
promise_test(async (t) => {
return fetch('/common/blank.html');
}, 'Fetches are unaffected by the `webrtc` property\'s value.');