blob: 8c77be52157e3d9b3e633f64d7e95d7301604b8a [file] [log] [blame]
<!DOCTYPE html>
<head>
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline'">
</head>
<p>Tests that nested about:blank iframes that try to eval on load inherit the parent's CSP</p>
<body>
<iframe id=x src=about:blank></iframe>
<script>
testRunner.waitUntilDone();
testRunner.dumpAsText();
x.onload=_=> {
x.contentDocument.body.innerHTML= "<iframe onload='eval(`alert(1)`)'><\/iframe>";
testRunner.notifyDone();
}
x.contentWindow.location.reload();
</script>
</body>