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