Bug 1737958 [wpt PR 31395] - <script type=webbundle>: Resolve a relative URL on the...
commit4be9500dc169a35a22173adf7e294b38368d30d4
authorHayato Ito <hayato@chromium.org>
Thu, 28 Oct 2021 10:29:08 +0000 (28 10:29 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Fri, 29 Oct 2021 10:24:52 +0000 (29 10:24 +0000)
treeef6df4a65939e7e3c5c487cb02bd45be8f413047
parent82ddf187fd6966df72ba110006b84b26b43f558e
Bug 1737958 [wpt PR 31395] - <script type=webbundle>: Resolve a relative URL on the bundle's URL, a=testonly

Automatic update from web-platform-tests
<script type=webbundle>: Resolve a relative URL on the bundle's URL

The explainer PR is: https://github.com/WICG/webpackage/pull/700

One of the gaps between the Subresource Loading with WebBundles and
Bundle Preloading proposals is "how to resolve a relative URL of
resources". The former is using document's base URL, and the latter is
using the bundle's URL. We have to align.

At the era of <link>-based API, using a document's base URL might make
sense because `resources` are specified in the link element's
attribute.

Now we use <script>-based APIs, and `resources` is specified in JSON, so
we no longer have any strong reason to use a document's base URL.

See the spec discussion for details:
https://github.com/WICG/webpackage/issues/699#issuecomment-952472275

Bug: 1263807
Change-Id: Ic71f095589daa42db2d4649e2cf77212616b2f25
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3244822
Reviewed-by: Kunihiko Sakamoto <ksakamoto@chromium.org>
Commit-Queue: Hayato Ito <hayato@chromium.org>
Cr-Commit-Position: refs/heads/main@{#935333}

--

wpt-commits: 6bbec86c72b31033d100beb6c571c37f1cdc5446
wpt-pr: 31395
testing/web-platform/tests/web-bundle/subresource-loading/script-relative-url-resources.https.tentative.html [new file with mode: 0644]
testing/web-platform/tests/web-bundle/subresource-loading/script-relative-url-scopes.https.tentative.html [new file with mode: 0644]
testing/web-platform/tests/web-bundle/subresource-loading/script-relative-url-static-element.https.tentative.html [new file with mode: 0644]
testing/web-platform/tests/web-bundle/subresource-loading/script-relative-url.https.tentative.html [deleted file]
testing/web-platform/tests/web-bundle/subresource-loading/script-reuse-web-bundle-resource.https.tentative.html