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

Unified Diff: LayoutTests/http/tests/security/resources/referrer-policy-conflicting-policies.html

Issue 534233002: Make sure to use the correct referrer policy in the FrameFetchContext (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 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/resources/referrer-policy-conflicting-policies.html
diff --git a/LayoutTests/http/tests/security/resources/referrer-policy-conflicting-policies.html b/LayoutTests/http/tests/security/resources/referrer-policy-conflicting-policies.html
new file mode 100644
index 0000000000000000000000000000000000000000..2a14dc6c2cfe8d0304d67bbb6ad28343e4f9a63f
--- /dev/null
+++ b/LayoutTests/http/tests/security/resources/referrer-policy-conflicting-policies.html
@@ -0,0 +1,27 @@
+<!DOCTYPE html>
+<script>
+if (window.testRunner)
+ testRunner.setAllowDisplayOfInsecureContent();
+
+function done()
+{
+ if (window.testRunner)
+ testRunner.notifyDone();
+}
+</script>
+<style>
+test {
+ content: url("http://127.0.0.1:8080/security/resources/green-if-no-referrer.php");
+}
+</style>
+<meta name="referrer" content="origin" />
+<body onload="done();">
+<p>
+Checks that an CSS image that was created before a referrer policy was set is
+loaded with the correct referrer, in this case, without a referrer.
+</p>
+<p>
+The test passes, if a green rectangle is displayed below.
+</p>
+<test/>
+</body>

Powered by Google App Engine
This is Rietveld 408576698