blob: f7d2073decc7348e148113df23e6cc340a7d07a6 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Security-Policy" content="script-src 'unsafe-inline' http://127.0.0.1:8000"/>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<script>
async_test(function () {
var blob = new Blob([
"try {" +
" importScripts('http://localhost:8000/security/contentSecurityPolicy/resources/post-message.js');" +
"} catch (err) { }" +
"postMessage('done');"
]);
var worker = new Worker(window.URL.createObjectURL(blob));
worker.onmessage = this.step_func(function (evt) {
this.done();
});
}, "Blob worker inherits CSP");
</script>
</body>
</html>