blob: 531c1bd2c5fbb84e588e2174bdf5d24f2e0b3039 [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/same-origin/same-origin.html";
let a = document.createElement("a");
let policy = "same-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>