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