Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 1 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /connection-allowlist/tentative/webrtc-block-default.sub.window.html - WPT Dashboard Interop Dashboard
// META: script=/common/get-host-info.sub.js
//
// The following tests assume the policy `Connection-Allowlist:
// (response-origin)` has been set.
promise_test(async (t) => {
try {
const configuration = {};
const peerConnection = new RTCPeerConnection(configuration);
assert_unreached('RTCPeerConnection construction should fail.')
} catch (err) {
assert_equals(err.name, 'NotAllowedError');
}
}, 'Test that setting Connection-Allowlist blocks WebRTC by default.');
promise_test(async (t) => {
return fetch('/common/blank.html');
}, 'Fetches are unaffected by the `webrtc` property\'s value.');