@@ -23,6 +23,8 @@ <h2>Unsafe Fetch</h2>
2323< pre class ="unsafe-fetch-8498 "> </ pre >
2424< pre class ="unsafe-fetch-8498-2-status "> </ pre >
2525< pre class ="unsafe-fetch-8498-2 "> </ pre >
26+ < pre class ="unsafe-fetch-import-inline-status "> </ pre >
27+ < pre class ="unsafe-fetch-raw-query-import-status "> </ pre >
2628
2729< h2 > Safe /@fs/ Fetch</ h2 >
2830< pre class ="safe-fs-fetch-status "> </ pre >
@@ -45,6 +47,8 @@ <h2>Unsafe /@fs/ Fetch</h2>
4547< pre class ="unsafe-fs-fetch-8498 "> </ pre >
4648< pre class ="unsafe-fs-fetch-8498-2-status "> </ pre >
4749< pre class ="unsafe-fs-fetch-8498-2 "> </ pre >
50+ < pre class ="unsafe-fs-fetch-import-inline-status "> </ pre >
51+ < pre class ="unsafe-fs-fetch-import-inline-wasm-init-status "> </ pre >
4852
4953< h2 > Nested Entry</ h2 >
5054< pre class ="nested-entry "> </ pre >
@@ -160,6 +164,24 @@ <h2>Denied</h2>
160164 console . error ( e )
161165 } )
162166
167+ // outside of allowed dir with import inline
168+ fetch ( joinUrlSegments ( base , '/unsafe.txt?import&inline' ) )
169+ . then ( ( r ) => {
170+ text ( '.unsafe-fetch-import-inline-status' , r . status )
171+ } )
172+ . catch ( ( e ) => {
173+ console . error ( e )
174+ } )
175+
176+ // outside of allowed dir with raw query import
177+ fetch ( joinUrlSegments ( base , '/unsafe.txt?raw?import' ) )
178+ . then ( ( r ) => {
179+ text ( '.unsafe-fetch-raw-query-import-status' , r . status )
180+ } )
181+ . catch ( ( e ) => {
182+ console . error ( e )
183+ } )
184+
163185 // imported before, should be treated as safe
164186 fetch ( joinUrlSegments ( base , joinUrlSegments ( '/@fs/' , ROOT ) + '/safe.json' ) )
165187 . then ( ( r ) => {
@@ -247,6 +269,35 @@ <h2>Denied</h2>
247269 console . error ( e )
248270 } )
249271
272+ // outside of root inline
273+ fetch (
274+ joinUrlSegments (
275+ base ,
276+ joinUrlSegments ( '/@fs/' , ROOT ) + '/root/unsafe.txt?import&inline' ,
277+ ) ,
278+ )
279+ . then ( ( r ) => {
280+ text ( '.unsafe-fs-fetch-import-inline-status' , r . status )
281+ } )
282+ . catch ( ( e ) => {
283+ console . error ( e )
284+ } )
285+
286+ // outside of root inline, faux wasm?init
287+ fetch (
288+ joinUrlSegments (
289+ base ,
290+ joinUrlSegments ( '/@fs/' , ROOT ) +
291+ '/root/unsafe.txt?import&?inline=1.wasm?init' ,
292+ ) ,
293+ )
294+ . then ( ( r ) => {
295+ text ( '.unsafe-fs-fetch-import-inline-wasm-init-status' , r . status )
296+ } )
297+ . catch ( ( e ) => {
298+ console . error ( e )
299+ } )
300+
250301 // outside root with special characters #8498
251302 fetch (
252303 joinUrlSegments (
0 commit comments