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