blob: e968669dd90b16eccd4e18a759998f16075d5dc6 [file] [log] [blame]
<!DOCTYPE html>
<html>
<body onload="clickLink()">
<script>
if (window.testRunner)
testRunner.waitUntilDone();
function clickLink() {
// Should be the empty string
let expected = "http://127.0.0.1:8000/";
let a = document.createElement("a");
let policy = "origin";
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>