| <!DOCTYPE html> |
| <title>Path restriction on subresource loading with WebBundles</title> |
| <link |
| rel="help" |
| href="https://github.com/WICG/webpackage/blob/main/explainers/subresource-loading.md" |
| /> |
| <script src="/resources/testharness.js"></script> |
| <script src="/resources/testharnessreport.js"></script> |
| <body> |
| <script type="webbundle"> |
| { |
| "source": "../resources/wbn/path-restriction.wbn", |
| "resources": [ |
| "/web-bundle/resources/wbn/resource.js", |
| "/web-bundle/resources/wbn/sub/resource.js", |
| "/web-bundle/resources/wbn-resource.js", |
| "/web-bundle/resources/wbn1/resource.js", |
| "/web-bundle/resources/other/resource.js", |
| "/web-bundle/resources/resource.js" |
| ] |
| } |
| </script> |
| <script> |
| setup(() => { |
| assert_true(HTMLScriptElement.supports('webbundle')); |
| }); |
| </script> |
| <script src="resources/path-restriction-test.js"></script> |
| </body> |