blob: 70b5dbed6c29f28d133ef4a6784c013ec7a60084 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<title>Check that the referrer header is correct</title>
</head>
<body>
<div id="console"></div>
<script>
var log = document.querySelector("#console");
var result;
if (document.referrer == "")
result = "FAIL: no referrer";
else if (document.referrer.indexOf(".html") !== -1)
result = "FAIL: referrer contains more than just the origin";
else
result = "PASS";
log.innerText = result;
document.title = result;
</script>
</body>
</html>