blob: 4fdc0423c5ad4b78088c2e921c7a11814703a364 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="/js-test-resources/js-test.js"></script>
</head>
<body>
<script>
description("Tests the behavior of same-origin referrer policy when cross origin.");
jsTestIsAsync = true;
function checkReferrer(value) {
referrer = value;
// Should be the empty string because we are cross-origin.
shouldBeEqualToString("referrer", "");
finishJSTest();
}
if (window.testRunner) {
testRunner.setStatisticsShouldDowngradeReferrer(false, function () { downgradeReferrerCallback('same-origin', 'localhost')});
}
</script>
</body>
</html>