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