summaryrefslogtreecommitdiffstats
path: root/dom/security/test/csp/file_strict_dynamic_parser_inserted_doc_write.html
blob: 2a3a7d49989c76f3cbcdd00030eb4245c838f0e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<!DOCTYPE HTML>
<html>
<head>
  <title>Bug 1299483 - CSP: Implement 'strict-dynamic'</title>
</head>
<body>
<div id="testdiv">blocked</div>

<script nonce="foo">
  // generates a parser inserted script and should be blocked
  document.write("<script src='http://example.com/tests/dom/security/test/csp/file_strict_dynamic.js'><\/script>");
</script>

</body>
</html>