|
150 | 150 | } |
151 | 151 | } |
152 | 152 | ], |
153 | | - "empty": [] |
| 153 | + "empty": [], |
| 154 | + "script-link": [ |
| 155 | + { |
| 156 | + "id": "skiff", |
| 157 | + "name": "Skiff", |
| 158 | + "url": "https://skiff.example", |
| 159 | + "client": "skiff", |
| 160 | + "rung": "listed", |
| 161 | + "open": { |
| 162 | + "world": "javascript:alert(1)//{world}", |
| 163 | + "element": null, |
| 164 | + "needs": null |
| 165 | + } |
| 166 | + } |
| 167 | + ], |
| 168 | + "script-link-case": [ |
| 169 | + { |
| 170 | + "id": "skiff", |
| 171 | + "name": "Skiff", |
| 172 | + "url": "https://skiff.example", |
| 173 | + "client": "skiff", |
| 174 | + "rung": "listed", |
| 175 | + "open": { |
| 176 | + "world": "JavaScript:alert(1)//{world}", |
| 177 | + "element": null, |
| 178 | + "needs": null |
| 179 | + } |
| 180 | + } |
| 181 | + ], |
| 182 | + "data-link": [ |
| 183 | + { |
| 184 | + "id": "skiff", |
| 185 | + "name": "Skiff", |
| 186 | + "url": "https://skiff.example", |
| 187 | + "client": "skiff", |
| 188 | + "rung": "listed", |
| 189 | + "open": { |
| 190 | + "world": "https://skiff.example/{world}", |
| 191 | + "element": "data:text/html,{id}", |
| 192 | + "needs": null |
| 193 | + } |
| 194 | + } |
| 195 | + ], |
| 196 | + "space-first": [ |
| 197 | + { |
| 198 | + "id": "skiff", |
| 199 | + "name": "Skiff", |
| 200 | + "url": "https://skiff.example", |
| 201 | + "client": "skiff", |
| 202 | + "rung": "listed", |
| 203 | + "open": { |
| 204 | + "world": " https://skiff.example/{world}", |
| 205 | + "element": null, |
| 206 | + "needs": null |
| 207 | + } |
| 208 | + } |
| 209 | + ] |
154 | 210 | }, |
155 | 211 | "cases": [ |
156 | 212 | { |
|
2027 | 2083 | "error": "type", |
2028 | 2084 | "names": "needs" |
2029 | 2085 | } |
| 2086 | + }, |
| 2087 | + { |
| 2088 | + "name": "a-script-link-is-refused", |
| 2089 | + "why": "a template whose scheme opens no app (javascript:, data:, vbscript:, file:, blob:, about:) is refused, never drawn as a row a press would run", |
| 2090 | + "tools": "script-link", |
| 2091 | + "kind": "world", |
| 2092 | + "address": { |
| 2093 | + "form": "human", |
| 2094 | + "world": "0199c3a1-7b2e-7c3d-8e4f-5a6b7c8d9e0f" |
| 2095 | + }, |
| 2096 | + "surface": { |
| 2097 | + "audience": "member", |
| 2098 | + "signed_in": true |
| 2099 | + }, |
| 2100 | + "refuse": { |
| 2101 | + "error": "type", |
| 2102 | + "names": "opens no app" |
| 2103 | + } |
| 2104 | + }, |
| 2105 | + { |
| 2106 | + "name": "a-script-link-in-any-case-is-refused", |
| 2107 | + "why": "a scheme is read in any case, as a browser reads it", |
| 2108 | + "tools": "script-link-case", |
| 2109 | + "kind": "world", |
| 2110 | + "address": { |
| 2111 | + "form": "human", |
| 2112 | + "world": "0199c3a1-7b2e-7c3d-8e4f-5a6b7c8d9e0f" |
| 2113 | + }, |
| 2114 | + "surface": { |
| 2115 | + "audience": "member", |
| 2116 | + "signed_in": true |
| 2117 | + }, |
| 2118 | + "refuse": { |
| 2119 | + "error": "type", |
| 2120 | + "names": "opens no app" |
| 2121 | + } |
| 2122 | + }, |
| 2123 | + { |
| 2124 | + "name": "a-data-link-is-refused", |
| 2125 | + "why": "the element template is held to the same rule as the world's, on a world menu too", |
| 2126 | + "tools": "data-link", |
| 2127 | + "kind": "world", |
| 2128 | + "address": { |
| 2129 | + "form": "human", |
| 2130 | + "world": "0199c3a1-7b2e-7c3d-8e4f-5a6b7c8d9e0f" |
| 2131 | + }, |
| 2132 | + "surface": { |
| 2133 | + "audience": "member", |
| 2134 | + "signed_in": true |
| 2135 | + }, |
| 2136 | + "refuse": { |
| 2137 | + "error": "type", |
| 2138 | + "names": "opens no app" |
| 2139 | + } |
| 2140 | + }, |
| 2141 | + { |
| 2142 | + "name": "a-template-begins-with-its-scheme", |
| 2143 | + "why": "a browser drops leading spaces before reading a scheme, so a template that does not begin with one is refused", |
| 2144 | + "tools": "space-first", |
| 2145 | + "kind": "world", |
| 2146 | + "address": { |
| 2147 | + "form": "human", |
| 2148 | + "world": "0199c3a1-7b2e-7c3d-8e4f-5a6b7c8d9e0f" |
| 2149 | + }, |
| 2150 | + "surface": { |
| 2151 | + "audience": "member", |
| 2152 | + "signed_in": true |
| 2153 | + }, |
| 2154 | + "refuse": { |
| 2155 | + "error": "type", |
| 2156 | + "names": "begins with its scheme" |
| 2157 | + } |
2030 | 2158 | } |
2031 | 2159 | ] |
2032 | 2160 | } |
0 commit comments