Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/http/tests/security/referrerPolicyHeader/referrer-policy-header-then-csp.php |
| diff --git a/third_party/WebKit/LayoutTests/http/tests/security/referrerPolicyHeader/referrer-policy-header-then-csp.php b/third_party/WebKit/LayoutTests/http/tests/security/referrerPolicyHeader/referrer-policy-header-then-csp.php |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..cf8e52193ab7ca5aa326acc083add21aadc936e7 |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/http/tests/security/referrerPolicyHeader/referrer-policy-header-then-csp.php |
| @@ -0,0 +1,19 @@ |
| +<?php |
| +header("Referrer-Policy: origin"); |
| +?> |
| +<!DOCTYPE html> |
| +<head> |
| + <meta http-equiv="Content-Security-Policy" content="script-src 'unsafe-inline' *; child-src *; referrer no-referrer"> |
|
Mike West
2016/06/21 07:40:03
Did you add metrics for this already? It would be
estark
2016/06/21 17:41:33
No, but I promise I will soon! I filed a bug for i
|
| + <script src="/resources/testharness.js"></script> |
| + <script src="/resources/testharnessreport.js"></script> |
| + <script src="/resources/get-host-info.js"></script> |
| +</head> |
| +<body> |
| +</body> |
| +<script> |
| + var policy = "no-referrer"; |
| + var expectedReferrer = ""; |
| + var navigateTo = "same-origin"; |
| +</script> |
| +<script src="resources/header-test.js"></script> |
| +</html> |