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