xhr.http.html (5147B)
1 <!DOCTYPE html> 2 <!-- DO NOT EDIT! Generated by `common/security-features/tools/generate.py --spec referrer-policy/` --> 3 <html> 4 <head> 5 <meta charset="utf-8"> 6 <meta name="timeout" content="long"> 7 <meta name="referrer" content="same-origin"> 8 <script src="/resources/testharness.js"></script> 9 <script src="/resources/testharnessreport.js"></script> 10 <script src="/common/security-features/resources/common.sub.js"></script> 11 <script src="../../../generic/test-case.sub.js"></script> 12 </head> 13 <body> 14 <script> 15 TestCase( 16 [ 17 { 18 "expectation": "omitted", 19 "origin": "cross-http", 20 "redirection": "keep-origin", 21 "source_context_list": [], 22 "source_scheme": "http", 23 "subresource": "xhr", 24 "subresource_policy_deliveries": [], 25 "test_description": "Referrer Policy: Expects omitted for xhr to cross-http origin and keep-origin redirection from http context." 26 }, 27 { 28 "expectation": "omitted", 29 "origin": "cross-http", 30 "redirection": "no-redirect", 31 "source_context_list": [], 32 "source_scheme": "http", 33 "subresource": "xhr", 34 "subresource_policy_deliveries": [], 35 "test_description": "Referrer Policy: Expects omitted for xhr to cross-http origin and no-redirect redirection from http context." 36 }, 37 { 38 "expectation": "omitted", 39 "origin": "cross-http", 40 "redirection": "swap-origin", 41 "source_context_list": [], 42 "source_scheme": "http", 43 "subresource": "xhr", 44 "subresource_policy_deliveries": [], 45 "test_description": "Referrer Policy: Expects omitted for xhr to cross-http origin and swap-origin redirection from http context." 46 }, 47 { 48 "expectation": "omitted", 49 "origin": "cross-https", 50 "redirection": "keep-origin", 51 "source_context_list": [], 52 "source_scheme": "http", 53 "subresource": "xhr", 54 "subresource_policy_deliveries": [], 55 "test_description": "Referrer Policy: Expects omitted for xhr to cross-https origin and keep-origin redirection from http context." 56 }, 57 { 58 "expectation": "omitted", 59 "origin": "cross-https", 60 "redirection": "no-redirect", 61 "source_context_list": [], 62 "source_scheme": "http", 63 "subresource": "xhr", 64 "subresource_policy_deliveries": [], 65 "test_description": "Referrer Policy: Expects omitted for xhr to cross-https origin and no-redirect redirection from http context." 66 }, 67 { 68 "expectation": "omitted", 69 "origin": "cross-https", 70 "redirection": "swap-origin", 71 "source_context_list": [], 72 "source_scheme": "http", 73 "subresource": "xhr", 74 "subresource_policy_deliveries": [], 75 "test_description": "Referrer Policy: Expects omitted for xhr to cross-https origin and swap-origin redirection from http context." 76 }, 77 { 78 "expectation": "omitted", 79 "origin": "same-http", 80 "redirection": "swap-origin", 81 "source_context_list": [], 82 "source_scheme": "http", 83 "subresource": "xhr", 84 "subresource_policy_deliveries": [], 85 "test_description": "Referrer Policy: Expects omitted for xhr to same-http origin and swap-origin redirection from http context." 86 }, 87 { 88 "expectation": "omitted", 89 "origin": "same-https", 90 "redirection": "swap-origin", 91 "source_context_list": [], 92 "source_scheme": "http", 93 "subresource": "xhr", 94 "subresource_policy_deliveries": [], 95 "test_description": "Referrer Policy: Expects omitted for xhr to same-https origin and swap-origin redirection from http context." 96 }, 97 { 98 "expectation": "stripped-referrer", 99 "origin": "same-http", 100 "redirection": "keep-origin", 101 "source_context_list": [], 102 "source_scheme": "http", 103 "subresource": "xhr", 104 "subresource_policy_deliveries": [], 105 "test_description": "Referrer Policy: Expects stripped-referrer for xhr to same-http origin and keep-origin redirection from http context." 106 }, 107 { 108 "expectation": "stripped-referrer", 109 "origin": "same-http", 110 "redirection": "no-redirect", 111 "source_context_list": [], 112 "source_scheme": "http", 113 "subresource": "xhr", 114 "subresource_policy_deliveries": [], 115 "test_description": "Referrer Policy: Expects stripped-referrer for xhr to same-http origin and no-redirect redirection from http context." 116 } 117 ], 118 new SanityChecker() 119 ).start(); 120 </script> 121 <div id="log"></div> 122 </body> 123 </html>