Index: LayoutTests/http/tests/security/contentSecurityPolicy/1.1/scriptnonce-redirect.html |
diff --git a/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/scriptnonce-redirect.html b/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/scriptnonce-redirect.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..b74025b95b53d9ab81dc6722b74f6488c0915032 |
--- /dev/null |
+++ b/LayoutTests/http/tests/security/contentSecurityPolicy/1.1/scriptnonce-redirect.html |
@@ -0,0 +1,14 @@ |
+<!DOCTYPE html> |
+<html> |
+ <head> |
+ <meta http-equiv="Content-Security-Policy" content="script-src 'nonce-noncynonce'"></meta> |
+ <script nonce="noncynonce"> |
+ if (window.testRunner) |
+ testRunner.dumpAsText(); |
+ </script> |
+ </head> |
+ <body> |
+ This tests whether a deferred script load because of a redirect is properly allowed by a nonce. |
+ <script nonce='noncynonce' src='../resources/redir.php?url=http://localhost:8000/security/contentSecurityPolicy/resources/alert-pass.js'></script> |
+ </body> |
+</html> |