Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(571)

Unified Diff: LayoutTests/http/tests/security/referrer-policy-subresource.html

Issue 1235563004: Apply meta tag referrer policy for preloaded requests (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: style fix Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/http/tests/security/resources/referrer-policy-script.php » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | LayoutTests/http/tests/security/resources/referrer-policy-script.php » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698