xhr.http.html (5971B)
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="strict-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": "origin", 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 origin for xhr to cross-http origin and keep-origin redirection from http context." 26 }, 27 { 28 "expectation": "origin", 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 origin for xhr to cross-http origin and no-redirect redirection from http context." 36 }, 37 { 38 "expectation": "origin", 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 origin for xhr to cross-http origin and swap-origin redirection from http context." 46 }, 47 { 48 "expectation": "origin", 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 origin for xhr to cross-https origin and keep-origin redirection from http context." 56 }, 57 { 58 "expectation": "origin", 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 origin for xhr to cross-https origin and no-redirect redirection from http context." 66 }, 67 { 68 "expectation": "origin", 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 origin for xhr to cross-https origin and swap-origin redirection from http context." 76 }, 77 { 78 "expectation": "origin", 79 "origin": "same-http", 80 "redirection": "keep-origin", 81 "source_context_list": [], 82 "source_scheme": "http", 83 "subresource": "xhr", 84 "subresource_policy_deliveries": [], 85 "test_description": "Referrer Policy: Expects origin for xhr to same-http origin and keep-origin redirection from http context." 86 }, 87 { 88 "expectation": "origin", 89 "origin": "same-http", 90 "redirection": "no-redirect", 91 "source_context_list": [], 92 "source_scheme": "http", 93 "subresource": "xhr", 94 "subresource_policy_deliveries": [], 95 "test_description": "Referrer Policy: Expects origin for xhr to same-http origin and no-redirect redirection from http context." 96 }, 97 { 98 "expectation": "origin", 99 "origin": "same-http", 100 "redirection": "swap-origin", 101 "source_context_list": [], 102 "source_scheme": "http", 103 "subresource": "xhr", 104 "subresource_policy_deliveries": [], 105 "test_description": "Referrer Policy: Expects origin for xhr to same-http origin and swap-origin redirection from http context." 106 }, 107 { 108 "expectation": "origin", 109 "origin": "same-https", 110 "redirection": "keep-origin", 111 "source_context_list": [], 112 "source_scheme": "http", 113 "subresource": "xhr", 114 "subresource_policy_deliveries": [], 115 "test_description": "Referrer Policy: Expects origin for xhr to same-https origin and keep-origin redirection from http context." 116 }, 117 { 118 "expectation": "origin", 119 "origin": "same-https", 120 "redirection": "no-redirect", 121 "source_context_list": [], 122 "source_scheme": "http", 123 "subresource": "xhr", 124 "subresource_policy_deliveries": [], 125 "test_description": "Referrer Policy: Expects origin for xhr to same-https origin and no-redirect redirection from http context." 126 }, 127 { 128 "expectation": "origin", 129 "origin": "same-https", 130 "redirection": "swap-origin", 131 "source_context_list": [], 132 "source_scheme": "http", 133 "subresource": "xhr", 134 "subresource_policy_deliveries": [], 135 "test_description": "Referrer Policy: Expects origin for xhr to same-https origin and swap-origin redirection from http context." 136 } 137 ], 138 new SanityChecker() 139 ).start(); 140 </script> 141 <div id="log"></div> 142 </body> 143 </html>