Bug 1733595 [wpt PR 31047] - Let <script type=webbundle> WPT fail early if it's not...
[gecko.git] / testing / web-platform / tests / web-bundle / subresource-loading / script-path-restriction.https.tentative.html
blob87f642889be08442d99739d0938e535caa8b60fe
1 <!DOCTYPE html>
2 <title>Path restriction on subresource loading with WebBundles</title>
3 <link
4 rel="help"
5 href="https://github.com/WICG/webpackage/blob/main/explainers/subresource-loading.md"
6 />
7 <script src="/resources/testharness.js"></script>
8 <script src="/resources/testharnessreport.js"></script>
9 <body>
10 <script type="webbundle">
12 "source": "../resources/wbn/path-restriction.wbn",
13 "resources": [
14 "/web-bundle/resources/wbn/resource.js",
15 "/web-bundle/resources/wbn/sub/resource.js",
16 "/web-bundle/resources/wbn-resource.js",
17 "/web-bundle/resources/wbn1/resource.js",
18 "/web-bundle/resources/other/resource.js",
19 "/web-bundle/resources/resource.js"
22 </script>
23 <script>
24 setup(() => {
25 assert_true(HTMLScriptElement.supports('webbundle'));
26 });
27 </script>
28 <script src="resources/path-restriction-test.js"></script>
29 </body>