Debian Codegraph @

testing/web-platform/mozilla/tests/content-security-policy/gen/top.http-rp/script-src-self/worker-import.http.html

raw
1 <!DOCTYPE html>
2 <!-- this is edited. We need to update it so that it is correctly generated if this gets adopted -->
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": "allowed",
18 "origin": "same-http",
19 "redirection": "keep-origin",
20 "source_context_list": [],
21 "source_scheme": "http",
22 "subresource": "worker-import",
23 "subresource_policy_deliveries": [
24 {
25 "deliveryType": "http-rp",
26 "key": "contentSecurityPolicy",
27 "value": 'script-src-self'
28 }
29 ],
30 "test_description": "Content Security Policy: Expects allowed for worker-import to same-http origin and keep-origin redirection from http context."
31 },
32 {
33 "expectation": "allowed",
34 "origin": "same-http",
35 "redirection": "no-redirect",
36 "source_context_list": [],
37 "source_scheme": "http",
38 "subresource": "worker-import",
39 "subresource_policy_deliveries": [
40 {
41 "deliveryType": "http-rp",
42 "key": "contentSecurityPolicy",
43 "value": 'script-src-self'
44 }
45 ],
46 "test_description": "Content Security Policy: Expects allowed for worker-import to same-http origin and no-redirect redirection from http context."
47 },
48 {
49 "expectation": "blocked",
50 "origin": "cross-http",
51 "redirection": "keep-origin",
52 "source_context_list": [],
53 "source_scheme": "http",
54 "subresource": "worker-import",
55 "subresource_policy_deliveries": [
56 {
57 "deliveryType": "http-rp",
58 "key": "contentSecurityPolicy",
59 "value": 'script-src-self'
60 }
61 ],
62 "test_description": "Content Security Policy: Expects blocked for worker-import to cross-http origin and keep-origin redirection from http context."
63 },
64 {
65 "expectation": "blocked",
66 "origin": "cross-http",
67 "redirection": "no-redirect",
68 "source_context_list": [],
69 "source_scheme": "http",
70 "subresource": "worker-import",
71 "subresource_policy_deliveries": [
72 {
73 "deliveryType": "http-rp",
74 "key": "contentSecurityPolicy",
75 "value": 'script-src-self'
76 }
77 ],
78 "test_description": "Content Security Policy: Expects blocked for worker-import to cross-http origin and no-redirect redirection from http context."
79 },
80 {
81 "expectation": "blocked",
82 "origin": "cross-http",
83 "redirection": "swap-origin",
84 "source_context_list": [],
85 "source_scheme": "http",
86 "subresource": "worker-import",
87 "subresource_policy_deliveries": [
88 {
89 "deliveryType": "http-rp",
90 "key": "contentSecurityPolicy",
91 "value": 'script-src-self'
92 }
93 ],
94 "test_description": "Content Security Policy: Expects blocked for worker-import to cross-http origin and swap-origin redirection from http context."
95 },
96 {
97 "expectation": "blocked",
98 "origin": "same-http",
99 "redirection": "swap-origin",
100 "source_context_list": [],
101 "source_scheme": "http",
102 "subresource": "worker-import",
103 "subresource_policy_deliveries": [
104 {
105 "deliveryType": "http-rp",
106 "key": "contentSecurityPolicy",
107 "value": 'script-src-self'
108 }
109 ],
110 "test_description": "Content Security Policy: Expects blocked for worker-import to same-http origin and swap-origin redirection from http context."
111 }
112 ],
113 new SanityChecker()
114 ).start();
115 </script>
116 <div id="log"></div>
117 </body>
118 </html>