Source code

Revision control

Copy as Markdown

Other Tools

<!DOCTYPE HTML>
<html>
<head>
<title>Bug 1299483 - CSP: Implement 'strict-dynamic'</title>
</head>
<body>
<div id="testdiv">blocked</div>
<img id="testimage" src="http://mochi.test:8888/tests/image/test/mochitest/blue.png" data-result="blocked">
<script>
let img = document.getElementById("testimage");
img.addEventListener("load", function() {
img.dataset.result = "allowed";
}, { once: true });
</script>
</body>
</html>