diff options
Diffstat (limited to 'Tools/TestWebKitAPI/Tests/WebKit2Cocoa/page-with-csp.html')
| -rw-r--r-- | Tools/TestWebKitAPI/Tests/WebKit2Cocoa/page-with-csp.html | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Tools/TestWebKitAPI/Tests/WebKit2Cocoa/page-with-csp.html b/Tools/TestWebKitAPI/Tests/WebKit2Cocoa/page-with-csp.html new file mode 100644 index 000000000..3fb76fe84 --- /dev/null +++ b/Tools/TestWebKitAPI/Tests/WebKit2Cocoa/page-with-csp.html @@ -0,0 +1,15 @@ +<!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> |
