gecko-dev/dom/security/test/csp/file_script_template.html
Christoph Kerschbaumer e454783943 Bug 1548385: Test CSP blocks scripts correctly within template. r=jkt
Differential Revision: https://phabricator.services.mozilla.com/D30480

--HG--
extra : moz-landing-system : lando
2019-05-13 20:20:58 +00:00

17 lines
379 B
HTML

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Security-Policy" content="default-src 'unsafe-inline'">
<template id="a">
<script src="file_script_template.js"></script>
</template>
</head>
<body>
<script>
var temp = document.getElementsByTagName("template")[0];
var clon = temp.content.cloneNode(true);
document.body.appendChild(clon);
</script>
</body>
</html>