sharedworker-classic.http.html (2342B)
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": "stripped-referrer", 19 "origin": "same-http", 20 "redirection": "keep-origin", 21 "source_context_list": [ 22 { 23 "policyDeliveries": [ 24 { 25 "deliveryType": "http-rp", 26 "key": "referrerPolicy", 27 "value": "no-referrer-when-downgrade" 28 } 29 ], 30 "sourceContextType": "iframe" 31 } 32 ], 33 "source_scheme": "http", 34 "subresource": "sharedworker-classic", 35 "subresource_policy_deliveries": [], 36 "test_description": "Referrer Policy: Expects stripped-referrer for sharedworker-classic to same-http origin and keep-origin redirection from http context." 37 }, 38 { 39 "expectation": "stripped-referrer", 40 "origin": "same-http", 41 "redirection": "no-redirect", 42 "source_context_list": [ 43 { 44 "policyDeliveries": [ 45 { 46 "deliveryType": "http-rp", 47 "key": "referrerPolicy", 48 "value": "no-referrer-when-downgrade" 49 } 50 ], 51 "sourceContextType": "iframe" 52 } 53 ], 54 "source_scheme": "http", 55 "subresource": "sharedworker-classic", 56 "subresource_policy_deliveries": [], 57 "test_description": "Referrer Policy: Expects stripped-referrer for sharedworker-classic to same-http origin and no-redirect redirection from http context." 58 } 59 ], 60 new SanityChecker() 61 ).start(); 62 </script> 63 <div id="log"></div> 64 </body> 65 </html>