commit-queue@webkit.org | 9e8f845 | 2019-07-17 09:03:37 +0000 | [diff] [blame] | 1 | <!DOCTYPE html> |
| 2 | <html> |
| 3 | <head> |
| 4 | <script src="/js-test-resources/js-test.js"></script> |
| 5 | </head> |
| 6 | <body> |
| 7 | <script> |
| 8 | description("Tests the behavior of origin referrer policy when same origin."); |
| 9 | jsTestIsAsync = true; |
| 10 | |
| 11 | function 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.org | 4f0393f | 2019-09-27 05:13:10 +0000 | [diff] [blame] | 17 | |
| 18 | if (window.testRunner) { |
| 19 | testRunner.setStatisticsShouldDowngradeReferrer(false, function () { downgradeReferrerCallback('origin', '127.0.0.1')}); |
| 20 | } |
commit-queue@webkit.org | 9e8f845 | 2019-07-17 09:03:37 +0000 | [diff] [blame] | 21 | </script> |
commit-queue@webkit.org | 9e8f845 | 2019-07-17 09:03:37 +0000 | [diff] [blame] | 22 | </body> |
| 23 | </html> |