blob: cef7f43785002be638fa5cf7b1c9a423e6816031 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src='../resources/multiple-iframe-test.js'></script>
<script>
var tests = [
['yes', 'script-src 127.0.0.1:8000', 'resources/script.js', 'nonce'],
['yes', 'script-src 127.0.0.1:8000 \'nonce-nonce\'', 'resources/script.js', 'nonce'],
['yes', 'script-src 127.0.0.1:8000 \'nonce-base64has+and/characters\'', 'resources/script.js', 'base64has+and/characters'],
['no', 'script-src \'nonce-nonce\'', 'resources/script.js', 'notnonce'],
['no', 'script-src \'nonce-notnonce\'', 'resources/script.js', 'nonce'],
];
</script>
</head>
<body onload="testExperimentalPolicy()">
<p>
Only the first two of these scripts should execute even though there are parse errors in the policy.
</p>