xhr.http.html (5920B)
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 <script src="/resources/testharness.js"></script> 8 <script src="/resources/testharnessreport.js"></script> 9 <script src="/common/security-features/resources/common.sub.js"></script> 10 <script src="../../../generic/test-case.sub.js"></script> 11 </head> 12 <body> 13 <script> 14 TestCase( 15 [ 16 { 17 "expectation": "origin", 18 "origin": "cross-http", 19 "redirection": "keep-origin", 20 "source_context_list": [], 21 "source_scheme": "http", 22 "subresource": "xhr", 23 "subresource_policy_deliveries": [], 24 "test_description": "Referrer Policy: Expects origin for xhr to cross-http origin and keep-origin redirection from http context." 25 }, 26 { 27 "expectation": "origin", 28 "origin": "cross-http", 29 "redirection": "no-redirect", 30 "source_context_list": [], 31 "source_scheme": "http", 32 "subresource": "xhr", 33 "subresource_policy_deliveries": [], 34 "test_description": "Referrer Policy: Expects origin for xhr to cross-http origin and no-redirect redirection from http context." 35 }, 36 { 37 "expectation": "origin", 38 "origin": "cross-http", 39 "redirection": "swap-origin", 40 "source_context_list": [], 41 "source_scheme": "http", 42 "subresource": "xhr", 43 "subresource_policy_deliveries": [], 44 "test_description": "Referrer Policy: Expects origin for xhr to cross-http origin and swap-origin redirection from http context." 45 }, 46 { 47 "expectation": "origin", 48 "origin": "cross-https", 49 "redirection": "keep-origin", 50 "source_context_list": [], 51 "source_scheme": "http", 52 "subresource": "xhr", 53 "subresource_policy_deliveries": [], 54 "test_description": "Referrer Policy: Expects origin for xhr to cross-https origin and keep-origin redirection from http context." 55 }, 56 { 57 "expectation": "origin", 58 "origin": "cross-https", 59 "redirection": "no-redirect", 60 "source_context_list": [], 61 "source_scheme": "http", 62 "subresource": "xhr", 63 "subresource_policy_deliveries": [], 64 "test_description": "Referrer Policy: Expects origin for xhr to cross-https origin and no-redirect redirection from http context." 65 }, 66 { 67 "expectation": "origin", 68 "origin": "cross-https", 69 "redirection": "swap-origin", 70 "source_context_list": [], 71 "source_scheme": "http", 72 "subresource": "xhr", 73 "subresource_policy_deliveries": [], 74 "test_description": "Referrer Policy: Expects origin for xhr to cross-https origin and swap-origin redirection from http context." 75 }, 76 { 77 "expectation": "origin", 78 "origin": "same-http", 79 "redirection": "keep-origin", 80 "source_context_list": [], 81 "source_scheme": "http", 82 "subresource": "xhr", 83 "subresource_policy_deliveries": [], 84 "test_description": "Referrer Policy: Expects origin for xhr to same-http origin and keep-origin redirection from http context." 85 }, 86 { 87 "expectation": "origin", 88 "origin": "same-http", 89 "redirection": "no-redirect", 90 "source_context_list": [], 91 "source_scheme": "http", 92 "subresource": "xhr", 93 "subresource_policy_deliveries": [], 94 "test_description": "Referrer Policy: Expects origin for xhr to same-http origin and no-redirect redirection from http context." 95 }, 96 { 97 "expectation": "origin", 98 "origin": "same-http", 99 "redirection": "swap-origin", 100 "source_context_list": [], 101 "source_scheme": "http", 102 "subresource": "xhr", 103 "subresource_policy_deliveries": [], 104 "test_description": "Referrer Policy: Expects origin for xhr to same-http origin and swap-origin redirection from http context." 105 }, 106 { 107 "expectation": "origin", 108 "origin": "same-https", 109 "redirection": "keep-origin", 110 "source_context_list": [], 111 "source_scheme": "http", 112 "subresource": "xhr", 113 "subresource_policy_deliveries": [], 114 "test_description": "Referrer Policy: Expects origin for xhr to same-https origin and keep-origin redirection from http context." 115 }, 116 { 117 "expectation": "origin", 118 "origin": "same-https", 119 "redirection": "no-redirect", 120 "source_context_list": [], 121 "source_scheme": "http", 122 "subresource": "xhr", 123 "subresource_policy_deliveries": [], 124 "test_description": "Referrer Policy: Expects origin for xhr to same-https origin and no-redirect redirection from http context." 125 }, 126 { 127 "expectation": "origin", 128 "origin": "same-https", 129 "redirection": "swap-origin", 130 "source_context_list": [], 131 "source_scheme": "http", 132 "subresource": "xhr", 133 "subresource_policy_deliveries": [], 134 "test_description": "Referrer Policy: Expects origin for xhr to same-https origin and swap-origin redirection from http context." 135 } 136 ], 137 new SanityChecker() 138 ).start(); 139 </script> 140 <div id="log"></div> 141 </body> 142 </html>