blob: b4744dc65657bb29c2c7b4eb19acabd4d474e2ba [file] [log] [blame] [edit]
<html>
<head>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
</script>
</head>
<body>
<p>
This test checks the always referrer policy when navigating from a secure URL
to an insecure URL. The test passes if the printed referrer is
https://127.0.0.1:8443/security/resources/referrer-policy-start.html?always
</p>
<script>
onmessage = (event) => {
document.getElementById("log").innerText = event.data;
testRunner.notifyDone();
};
window.open("https://127.0.0.1:8443/security/resources/referrer-policy-start.html?always", "testPopup", "popup");
</script>
<div id="log"></div>
</body>
</html>