blob: 3fb76fe84110ce472535d59fd354eed34f876091 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Security-Policy" content="script-src 'none'">
</head>
<body>
<script nonce="a">
window.webkit.messageHandlers.testHandler.postMessage("MainFrame: A");
</script>
<script nonce="b">
window.webkit.messageHandlers.testHandler.postMessage("MainFrame: B");
</script>
<iframe id="iframe" src="page-with-csp-iframe.html"></iframe>
</body>
</html>