Index: LayoutTests/http/tests/security/contentSecurityPolicy/script-src-self-in-srcdoc.html |
diff --git a/LayoutTests/http/tests/security/contentSecurityPolicy/script-src-self-in-srcdoc.html b/LayoutTests/http/tests/security/contentSecurityPolicy/script-src-self-in-srcdoc.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..55328d898d73925c3a7ea8136fc810a1d1cb7776 |
--- /dev/null |
+++ b/LayoutTests/http/tests/security/contentSecurityPolicy/script-src-self-in-srcdoc.html |
@@ -0,0 +1,19 @@ |
+<!DOCTYPE html> |
+<html> |
+<head> |
+ <meta http-equiv="Content-Security-Policy" content="script-src 'unsafe-inline' 'self'"> |
+ <script> |
+ if (window.testRunner) { |
+ testRunner.dumpAsText(); |
+ testRunner.dumpChildFramesAsText(); |
+ } |
+ </script> |
+</head> |
+<body> |
+ <iframe srcdoc=" |
+ <div id='result' text='PASS'>FAIL</div> |
+ <script src='http://127.0.0.1:8000/security/contentSecurityPolicy/resources/script.js'></script> |
+ "></iframe> |
+</body> |
+</html> |
+ |