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

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

Issue 1253413003: Implement referrerpolicy attribute for anchor elements (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: update webexposed layout tests Created 5 years, 4 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
Index: LayoutTests/http/tests/security/referrer-policy-attribute-noreferrer.html
diff --git a/LayoutTests/http/tests/security/referrer-policy-attribute-noreferrer.html b/LayoutTests/http/tests/security/referrer-policy-attribute-noreferrer.html
new file mode 100644
index 0000000000000000000000000000000000000000..1ce13407c836055ec2cebc118e006146cbfd4773
--- /dev/null
+++ b/LayoutTests/http/tests/security/referrer-policy-attribute-noreferrer.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <script src="/resources/testharness.js"></script>
+ <script src="/resources/testharnessreport.js"></script>
+</head>
+<body>
+ <!-- Test that rel="noreferrer" takes precedence over the
+ 'referrerpolicy' attribute. -->
+ <a href="resources/referrer-attr-anchor-noreferrer-target.html"
+ rel="noreferrer"
+ referrerpolicy="unsafe-url" id="click-me">click me</a>
+ <script>
+ document.getElementById("click-me").click();
+ </script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698