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