Bug 1735286 [wpt PR 31200] - Support uuid-in-package: URLs in Subresource WebBundles...
commit2f2f8977d36c9f8b741e70d069c5794e5c7f709b
authorKunihiko Sakamoto <ksakamoto@chromium.org>
Fri, 15 Oct 2021 10:39:56 +0000 (15 10:39 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Thu, 28 Oct 2021 03:19:46 +0000 (28 03:19 +0000)
treeb482f8a3213ef87e8dd0528193f2aa3ae635f35d
parent32a9c3bc92fd826236b442208c38dd3e7a8d375a
Bug 1735286 [wpt PR 31200] - Support uuid-in-package: URLs in Subresource WebBundles, a=testonly

Automatic update from web-platform-tests
Support uuid-in-package: URLs in Subresource WebBundles

This allows subresource and subframe loading from WebBundles with
uuid-in-package: scheme URLs. We have been using urn:uuid: for this
purpose, but since urn: scheme can be handled by custom protocol
handler, there was a possibility of conflict.

Explainer change: https://github.com/WICG/webpackage/pull/677

The semantics is the same as currently we have for urn:uuid.

Temporarily, we support both uuid-in-package: and urn:uuid: resources so
that this will not break currently running origin trial. We will remove
the urn:uuid: support before shipping this feature.

Bug: 1257045
Change-Id: Ie86d3a3207fdaa6a4b0b4337cac2f1c6457e132b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3104651
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Alex Moshchuk <alexmos@chromium.org>
Reviewed-by: Takashi Toyoshima <toyoshim@chromium.org>
Reviewed-by: Hayato Ito <hayato@chromium.org>
Commit-Queue: Kunihiko Sakamoto <ksakamoto@chromium.org>
Cr-Commit-Position: refs/heads/main@{#931822}

--

wpt-commits: 2a784773fdc47e3dd1b1c252b5c07624121a5552
wpt-pr: 31200
testing/web-platform/tests/web-bundle/resources/generate-test-wbns.sh
testing/web-platform/tests/web-bundle/resources/uuid-in-package.har [new file with mode: 0644]
testing/web-platform/tests/web-bundle/resources/wbn/uuid-in-package.wbn [new file with mode: 0644]
testing/web-platform/tests/web-bundle/subresource-loading/link-csp-allowed.https.tentative.html
testing/web-platform/tests/web-bundle/subresource-loading/link-csp-blocked.https.tentative.html
testing/web-platform/tests/web-bundle/subresource-loading/resources/subframe-from-web-bundle-test.js
testing/web-platform/tests/web-bundle/subresource-loading/resources/subresource-load-test.sub.js