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

Unified Diff: chrome/test/data/referrer_policy/referrer-policy-start.html

Issue 8823008: Test for referrer policy (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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 | « chrome/test/data/referrer_policy/referrer-policy-redirect.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/referrer_policy/referrer-policy-start.html
diff --git a/chrome/test/data/referrer_policy/referrer-policy-start.html b/chrome/test/data/referrer_policy/referrer-policy-start.html
new file mode 100644
index 0000000000000000000000000000000000000000..cd91522118244cab204f7782426317fc67d75e24
--- /dev/null
+++ b/chrome/test/data/referrer_policy/referrer-policy-start.html
@@ -0,0 +1,17 @@
+<html>
+<head>
+<script>
+function runTest() {
+ var matches = RegExp(/\?(.*)&port=(.*)/).exec(document.location.search);
+ var meta = document.createElement("meta");
+ meta.name = "referrer";
+ meta.content = matches[1];
+ document.head.appendChild(meta);
+ document.location =
+ "http://127.0.0.1:" + matches[2] + "/files/referrer-policy-log.html";
+}
+</script>
+</head>
+<body onload="runTest()">
+</body>
+</html>
« no previous file with comments | « chrome/test/data/referrer_policy/referrer-policy-redirect.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698