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 |
index 5f5c457b69c4ba18b8a9ca9c96d4ddad692460af..ac580fac797cc671cf8e7aedb54f245f35b73429 100644 |
--- a/chrome/test/data/referrer_policy/referrer-policy-start.html |
+++ b/chrome/test/data/referrer_policy/referrer-policy-start.html |
@@ -18,26 +18,32 @@ function run() { |
return; |
} |
- var meta = document.createElement("meta"); |
- meta.name = "referrer"; |
- meta.content = matches[kPolicy]; |
- document.head.appendChild(meta); |
+ if (matches[kPolicy] != "no-meta") { |
+ var meta = document.createElement("meta"); |
+ meta.name = "referrer"; |
+ meta.content = matches[kPolicy]; |
+ document.head.appendChild(meta); |
+ } |
var destination; |
- if (matches[kRedirect] == "false") { |
+ if (matches[kRedirect] == "none") { |
destination = "http://127.0.0.1:" + matches[kPort] + |
"/files/referrer-policy-log.html"; |
- } else if (matches[kRedirect] == "http") { |
+ } else if (matches[kRedirect] == "http2http") { |
destination = "http://127.0.0.1:" + matches[kPort] + |
"/server-redirect?http://127.0.0.1:" + matches[kPort] + |
"/files/referrer-policy-log.html"; |
- } else if (matches[kRedirect] == "echoheader") { |
- destination = "http://127.0.0.1:" + matches[kPort] + "/echoheader?Referer"; |
- } else { |
+ } else if (matches[kRedirect] == "http2https") { |
+ destination = "http://127.0.0.1:" + matches[kPort] + |
+ "/server-redirect?https://127.0.0.1:" + matches[kSslPort] + |
+ "/files/referrer-policy-log.html"; |
+ } else if (matches[kRedirect] == "https2http") { |
destination = "https://127.0.0.1:" + matches[kSslPort] + |
"/server-redirect?http://127.0.0.1:" + matches[kPort] + |
"/files/referrer-policy-log.html"; |
+ } else if (matches[kRedirect] == "echoheader") { |
+ destination = "http://127.0.0.1:" + matches[kPort] + "/echoheader?Referer"; |
} |
if (matches[kLink] == "true") { |