blob: c28e20c3085f0124e9e93290b2c4a64643ae30c8 [file] [log] [blame]
<!DOCTYPE html>
<html>
<body onload="clickLink()">
<script>
if (window.testRunner)
testRunner.waitUntilDone();
function clickLink() {
// Should be the full URL
let expected = "http://127.0.0.1:8000/referrer-policy-anchor/no-referrer-when-downgrade/same-origin.html";
let a = document.createElement("a");
let policy = "no-referrer-when-downgrade";
a.referrerPolicy = policy;
a.href = "http://127.0.0.1:8000/referrer-policy/resources/check-referrer.php?expected=" + expected + "&policy=" + policy;
a.click();
}
</script>
</body>
</html>