blob: 608604f21d230846b204cd1a63d58d3ecab98fbf [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 and going from HTTPS to HTTP.
let expected = "";
let a = document.createElement("a");
let policy = "strict-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>