blob: a4901b5c02f103167bbd613b01e5dc0c32aea43f [file] [log] [blame]
#!/usr/bin/env python3
import sys
sys.stdout.write(
'Content-Security-Policy-Report-Only: script-src \'sha256-33badf00d3badf00d3badf00d3badf00d3badf00d33=\' \'nonce-dump-as-text\'; report-uri ../resources/save-report.py?test=/security/contentSecurityPolicy/1.1/scripthash-allowed-by-legacy-enforced-policy-and-blocked-by-report-policy.py\r\n'
'X-WebKit-CSP: script-src \'sha256-n7CDY/1Rg9w5XVqu2QuiqpjBw0MVHvwDmHpkLXsuu2g=\' \'nonce-dump-as-text\'\r\n'
'Content-Type: text/html\r\n\r\n'
'<!DOCTYPE html>\n'
'<html>\n'
'<head>\n'
'<script nonce="dump-as-text">\n'
'if (window.testRunner) {\n'
' testRunner.dumpAsText();\n'
' testRunner.dumpChildFramesAsText();\n'
'}\n'
'</script>\n'
'</head>\n'
'<body>\n'
'<p id="result">FAIL did not execute script.</p>\n'
'<script>\n'
'document.getElementById("result").textContent = "PASS did execute script.";\n'
'</script>\n'
'<iframe src="../resources/echo-report.py?test=/security/contentSecurityPolicy/1.1/scripthash-allowed-by-legacy-enforced-policy-and-blocked-by-report-policy.py"></iframe>\n'
'</body>\n'
'</html>\n'
'\r\n'
)