summaryrefslogtreecommitdiff
path: root/Tools/TestWebKitAPI/Tests/WebKit2Cocoa/page-with-csp-iframe.html
blob: 4c2a9dbb6056b0d6939decebe313c4964dca2938 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Security-Policy" content="script-src 'none'">
</head>
<body>
<script nonce="a">
window.webkit.messageHandlers.testHandler.postMessage("Subframe: A");
</script>
<script nonce="b">
window.webkit.messageHandlers.testHandler.postMessage("Subframe: B");
</script>
</body>
</html>