blob: 0c034edbb6d998a38d9ed78c0fd1d1cc66c3f349 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.dumpChildFrames();
}
</script>
<p>This test verifies that shared workers are not available in a sandboxed iframe.</p>
<iframe sandbox="allow-scripts" srcdoc="
<script>
try {
var s = new SharedWorker('http://127.0.0.1:8080/fast/frames/resources/sandboxed-iframe-workers.js');
console.log('FAIL: SharedWorker creation should have thrown an exception.');
} catch (e) {
console.log('PASS: SharedWorker creation threw \'' + e + '\'.');
}
</script>
"></iframe>
</body>
</head>
</html>