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

<script nonce="foo">
  eval('document.getElementById("testdiv").innerHTML = "allowed";');
</script>

</body>
</html>