blob: de8ad70f168668cfcce39f38b3d39b04cf0d0526 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline'"/>
<script>
if (window.testRunner) {
testRunner.waitUntilDone();
testRunner.dumpAsText();
}
</script>
</head>
<body>
<script>
try {
var worker = new Worker('http://127.0.0.1:8000/security/contentSecurityPolicy/resources/worker.py?type=function-function&csp=' +
encodeURIComponent("script-src 'self' 'unsafe-inline'"));
worker.onmessage = function (event) {
alert(event.data);
if (window.testRunner)
testRunner.notifyDone();
};
} catch (e) {
alert(e);
if (window.testRunner)
testRunner.notifyDone();
}
</script>
</body>
</html>