fetch.http.html (8496B)
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="unsafe-url"> 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 { 23 "policyDeliveries": [ 24 { 25 "deliveryType": "http-rp", 26 "key": "referrerPolicy", 27 "value": "same-origin" 28 } 29 ], 30 "sourceContextType": "worker-classic" 31 } 32 ], 33 "source_scheme": "http", 34 "subresource": "fetch", 35 "subresource_policy_deliveries": [], 36 "test_description": "Referrer Policy: Expects omitted for fetch to cross-http origin and keep-origin redirection from http context." 37 }, 38 { 39 "expectation": "omitted", 40 "origin": "cross-http", 41 "redirection": "no-redirect", 42 "source_context_list": [ 43 { 44 "policyDeliveries": [ 45 { 46 "deliveryType": "http-rp", 47 "key": "referrerPolicy", 48 "value": "same-origin" 49 } 50 ], 51 "sourceContextType": "worker-classic" 52 } 53 ], 54 "source_scheme": "http", 55 "subresource": "fetch", 56 "subresource_policy_deliveries": [], 57 "test_description": "Referrer Policy: Expects omitted for fetch to cross-http origin and no-redirect redirection from http context." 58 }, 59 { 60 "expectation": "omitted", 61 "origin": "cross-http", 62 "redirection": "swap-origin", 63 "source_context_list": [ 64 { 65 "policyDeliveries": [ 66 { 67 "deliveryType": "http-rp", 68 "key": "referrerPolicy", 69 "value": "same-origin" 70 } 71 ], 72 "sourceContextType": "worker-classic" 73 } 74 ], 75 "source_scheme": "http", 76 "subresource": "fetch", 77 "subresource_policy_deliveries": [], 78 "test_description": "Referrer Policy: Expects omitted for fetch to cross-http origin and swap-origin redirection from http context." 79 }, 80 { 81 "expectation": "omitted", 82 "origin": "cross-https", 83 "redirection": "keep-origin", 84 "source_context_list": [ 85 { 86 "policyDeliveries": [ 87 { 88 "deliveryType": "http-rp", 89 "key": "referrerPolicy", 90 "value": "same-origin" 91 } 92 ], 93 "sourceContextType": "worker-classic" 94 } 95 ], 96 "source_scheme": "http", 97 "subresource": "fetch", 98 "subresource_policy_deliveries": [], 99 "test_description": "Referrer Policy: Expects omitted for fetch to cross-https origin and keep-origin redirection from http context." 100 }, 101 { 102 "expectation": "omitted", 103 "origin": "cross-https", 104 "redirection": "no-redirect", 105 "source_context_list": [ 106 { 107 "policyDeliveries": [ 108 { 109 "deliveryType": "http-rp", 110 "key": "referrerPolicy", 111 "value": "same-origin" 112 } 113 ], 114 "sourceContextType": "worker-classic" 115 } 116 ], 117 "source_scheme": "http", 118 "subresource": "fetch", 119 "subresource_policy_deliveries": [], 120 "test_description": "Referrer Policy: Expects omitted for fetch to cross-https origin and no-redirect redirection from http context." 121 }, 122 { 123 "expectation": "omitted", 124 "origin": "cross-https", 125 "redirection": "swap-origin", 126 "source_context_list": [ 127 { 128 "policyDeliveries": [ 129 { 130 "deliveryType": "http-rp", 131 "key": "referrerPolicy", 132 "value": "same-origin" 133 } 134 ], 135 "sourceContextType": "worker-classic" 136 } 137 ], 138 "source_scheme": "http", 139 "subresource": "fetch", 140 "subresource_policy_deliveries": [], 141 "test_description": "Referrer Policy: Expects omitted for fetch to cross-https origin and swap-origin redirection from http context." 142 }, 143 { 144 "expectation": "omitted", 145 "origin": "same-http", 146 "redirection": "swap-origin", 147 "source_context_list": [ 148 { 149 "policyDeliveries": [ 150 { 151 "deliveryType": "http-rp", 152 "key": "referrerPolicy", 153 "value": "same-origin" 154 } 155 ], 156 "sourceContextType": "worker-classic" 157 } 158 ], 159 "source_scheme": "http", 160 "subresource": "fetch", 161 "subresource_policy_deliveries": [], 162 "test_description": "Referrer Policy: Expects omitted for fetch to same-http origin and swap-origin redirection from http context." 163 }, 164 { 165 "expectation": "omitted", 166 "origin": "same-https", 167 "redirection": "swap-origin", 168 "source_context_list": [ 169 { 170 "policyDeliveries": [ 171 { 172 "deliveryType": "http-rp", 173 "key": "referrerPolicy", 174 "value": "same-origin" 175 } 176 ], 177 "sourceContextType": "worker-classic" 178 } 179 ], 180 "source_scheme": "http", 181 "subresource": "fetch", 182 "subresource_policy_deliveries": [], 183 "test_description": "Referrer Policy: Expects omitted for fetch to same-https origin and swap-origin redirection from http context." 184 }, 185 { 186 "expectation": "stripped-referrer", 187 "origin": "same-http", 188 "redirection": "keep-origin", 189 "source_context_list": [ 190 { 191 "policyDeliveries": [ 192 { 193 "deliveryType": "http-rp", 194 "key": "referrerPolicy", 195 "value": "same-origin" 196 } 197 ], 198 "sourceContextType": "worker-classic" 199 } 200 ], 201 "source_scheme": "http", 202 "subresource": "fetch", 203 "subresource_policy_deliveries": [], 204 "test_description": "Referrer Policy: Expects stripped-referrer for fetch to same-http origin and keep-origin redirection from http context." 205 }, 206 { 207 "expectation": "stripped-referrer", 208 "origin": "same-http", 209 "redirection": "no-redirect", 210 "source_context_list": [ 211 { 212 "policyDeliveries": [ 213 { 214 "deliveryType": "http-rp", 215 "key": "referrerPolicy", 216 "value": "same-origin" 217 } 218 ], 219 "sourceContextType": "worker-classic" 220 } 221 ], 222 "source_scheme": "http", 223 "subresource": "fetch", 224 "subresource_policy_deliveries": [], 225 "test_description": "Referrer Policy: Expects stripped-referrer for fetch to same-http origin and no-redirect redirection from http context." 226 } 227 ], 228 new SanityChecker() 229 ).start(); 230 </script> 231 <div id="log"></div> 232 </body> 233 </html>