| 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..0e09040215c3d1d874ad65d8183b9cdd3db3962f
|
| --- /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 caused by 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>
|
|
|