blob: 1bcb7c8166d360b72a9d0da81141802a5b824515 [file] [log] [blame]
commit-queue@webkit.org9e8f8452019-07-17 09:03:37 +00001<!DOCTYPE html>
2<html>
3<head>
4<script src="/js-test-resources/js-test.js"></script>
5</head>
6<body>
7<script>
8description("Tests the behavior of origin referrer policy when same origin.");
9jsTestIsAsync = true;
10
11function checkReferrer(value) {
12 referrer = value;
13 // Should be the origin
14 shouldBeEqualToString("referrer", "http://127.0.0.1:8000/");
15 finishJSTest();
16}
commit-queue@webkit.org4f0393f2019-09-27 05:13:10 +000017
18if (window.testRunner) {
19 testRunner.setStatisticsShouldDowngradeReferrer(false, function () { downgradeReferrerCallback('origin', '127.0.0.1')});
20}
commit-queue@webkit.org9e8f8452019-07-17 09:03:37 +000021</script>
commit-queue@webkit.org9e8f8452019-07-17 09:03:37 +000022</body>
23</html>