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

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

Issue 714813003: Referrer Policy: Add new policies to URLRequest. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Tests. Created 6 years, 1 month 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: 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") {
« no previous file with comments | « chrome/browser/referrer_policy_browsertest.cc ('k') | content/browser/loader/resource_dispatcher_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698