sharedworker-import.http.html (3620B)
1 <!DOCTYPE html> 2 <!-- DO NOT EDIT! Generated by `common/security-features/tools/generate.py --spec content-security-policy/` --> 3 <html> 4 <head> 5 <meta charset="utf-8"> 6 <meta name="timeout" content="long"> 7 <meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline'"> 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": "allowed", 19 "origin": "same-http", 20 "redirection": "keep-origin", 21 "source_context_list": [], 22 "source_scheme": "http", 23 "subresource": "sharedworker-import", 24 "subresource_policy_deliveries": [], 25 "test_description": "Content Security Policy: Expects allowed for sharedworker-import to same-http origin and keep-origin redirection from http context." 26 }, 27 { 28 "expectation": "allowed", 29 "origin": "same-http", 30 "redirection": "no-redirect", 31 "source_context_list": [], 32 "source_scheme": "http", 33 "subresource": "sharedworker-import", 34 "subresource_policy_deliveries": [], 35 "test_description": "Content Security Policy: Expects allowed for sharedworker-import to same-http origin and no-redirect redirection from http context." 36 }, 37 { 38 "expectation": "blocked", 39 "origin": "cross-http", 40 "redirection": "keep-origin", 41 "source_context_list": [], 42 "source_scheme": "http", 43 "subresource": "sharedworker-import", 44 "subresource_policy_deliveries": [], 45 "test_description": "Content Security Policy: Expects blocked for sharedworker-import to cross-http origin and keep-origin redirection from http context." 46 }, 47 { 48 "expectation": "blocked", 49 "origin": "cross-http", 50 "redirection": "no-redirect", 51 "source_context_list": [], 52 "source_scheme": "http", 53 "subresource": "sharedworker-import", 54 "subresource_policy_deliveries": [], 55 "test_description": "Content Security Policy: Expects blocked for sharedworker-import to cross-http origin and no-redirect redirection from http context." 56 }, 57 { 58 "expectation": "blocked", 59 "origin": "cross-http", 60 "redirection": "swap-origin", 61 "source_context_list": [], 62 "source_scheme": "http", 63 "subresource": "sharedworker-import", 64 "subresource_policy_deliveries": [], 65 "test_description": "Content Security Policy: Expects blocked for sharedworker-import to cross-http origin and swap-origin redirection from http context." 66 }, 67 { 68 "expectation": "blocked", 69 "origin": "same-http", 70 "redirection": "swap-origin", 71 "source_context_list": [], 72 "source_scheme": "http", 73 "subresource": "sharedworker-import", 74 "subresource_policy_deliveries": [], 75 "test_description": "Content Security Policy: Expects blocked for sharedworker-import to same-http origin and swap-origin redirection from http context." 76 } 77 ], 78 new SanityChecker() 79 ).start(); 80 </script> 81 <div id="log"></div> 82 </body> 83 </html>