blob: 97412f29ca9e980a80fdd5bb9f7bbc6c9dce3add [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Security-Policy" content="connect-src 'none'"/>
<script>
if (window.testRunner) {
testRunner.waitUntilDone();
testRunner.dumpAsText();
}
</script>
</head>
<body>
<script>
try {
var worker = new SharedWorker('http://127.0.0.1:8000/security/contentSecurityPolicy/resources/shared-worker-make-xhr.js');
worker.port.onmessage = function (event) {
alert(event.data);
if (window.testRunner)
testRunner.notifyDone();
};
} catch (e) {
alert(e);
if (window.testRunner)
testRunner.notifyDone();
}
</script>
</body>
</html>