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 |
index 77f31856ff8c8089496df172e129e390ad13db3b..fcc789aea421d6f25e94fbe976731425cc84a6d7 100644 |
--- a/LayoutTests/http/tests/security/referrer-policy-subresource.html |
+++ b/LayoutTests/http/tests/security/referrer-policy-subresource.html |
@@ -3,12 +3,21 @@ |
<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 src="resources/referrer-policy-script.php?1"></script> |
+ <meta name="referrer" content="no-referrer"> |
+ <script> |
+ // Test that meta referrer policies are not applied on subresources |
+ // loaded before the policy. |
+ test(function () { |
+ assert_not_equals("none", scriptReferrer); |
+ }, "Meta referrer policy is not set on subresource before meta tag"); |
+ </script> |
+ <script src="resources/referrer-policy-script.php?2"></script> |
<script> |
- // Test that referrer policies are applied on subresources. |
+ // Test that meta referrer policies are applied on subresources |
+ // loaded after the policy. |
// crbug.com/508310 |
test(function () { |
assert_equals("none", scriptReferrer); |