blob: 76386a007eb7e982ff9a7b10ffb58609996a06fc [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.dumpChildFramesAsText();
}
</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');
alert('FAIL: SharedWorker creation should have thrown an exception.');
} catch (e) {
alert('PASS: SharedWorker creation threw \'' + e + '\'.');
}
</script>
"></iframe>
</body>
</head>
</html>