blob: 719d05475353672983bf258bfc68d421ade11a0d [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script>
function log(msg) {
document.getElementById("log").innerHTML += msg + "<br>";
}
function check() {
if (document.referrer.indexOf("other.html") != -1)
log("FAIL: incorrect referrer send: " + document.referrer);
else
log("PASS: correct referrer send");
if (window.testRunner)
testRunner.notifyDone();
}
</script>
</head>
<body onload="check()">
<p>
Tests that when navigating back from a history entry that was created by
history.pushState(), the outgoing referrer is correctly updated.
</p>
<div id="log"></div>
</body>
</html>