Index: LayoutTests/http/tests/security/referrer-policy-subresource.html |
diff --git a/LayoutTests/http/tests/security/referrer-policy-subresource.html b/LayoutTests/http/tests/security/referrer-policy-subresource.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..77f31856ff8c8089496df172e129e390ad13db3b |
--- /dev/null |
+++ b/LayoutTests/http/tests/security/referrer-policy-subresource.html |
@@ -0,0 +1,18 @@ |
+<!DOCTYPE html> |
+<html> |
+<head> |
+ <script src="/resources/testharness.js"></script> |
+ <script src="/resources/testharnessreport.js"></script> |
+ <meta name="referrer" content="no-referrer"> |
+</head> |
+<body> |
+ <script src="resources/referrer-policy-script.php"></script> |
+ <script> |
+ // Test that referrer policies are applied on subresources. |
+ // crbug.com/508310 |
+ test(function () { |
+ assert_equals("none", scriptReferrer); |
+ }, "Meta referrer policy is set on subresource"); |
+ </script> |
+</body> |
+</html> |