Bug 1680434 [wpt PR 26736] - Support WebBundle Subresource loading via Network Servic...
commitc2ca777c67ceaeec59333a5b955caa9d3404783d
authorHayato Ito <hayato@chromium.org>
Fri, 11 Dec 2020 12:15:40 +0000 (11 12:15 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Mon, 14 Dec 2020 09:48:21 +0000 (14 09:48 +0000)
tree85bdcd7d4f535dac5a8154afc371aede7f122eb9
parent34995a29d2e4e5eb881815def6cf709feadefa79
Bug 1680434 [wpt PR 26736] - Support WebBundle Subresource loading via Network Service, a=testonly

Automatic update from web-platform-tests
Support WebBundle Subresource loading via Network Service

This is a follow-up to https://crrev.com/c/2560526.

This CL changes the implementation of WebBundle subresource loading
from "renderer oriented" to "network service oriented".

Before this CL, a renderer parses a WebBundle and serves a subresource
from there directly.

After this CL, they are done in the Network Service, instead of a renderer.

The motivation we're changing our design is "we should honor CORB
[1]". A renderer shouldn't have cross-origin data in their memory.
See the design doc [2] for details.

Note this CL removes
blink/renderer/platform/loader/fetch/url_loader/web_bundle_subresource_loader_test.cc,
which was already moved to
services/network/web_bundle_url_loader_factory_unittest.cc in a previous CL.

- [1]: https://source.chromium.org/chromium/chromium/src/+/master:services/network/cross_origin_read_blocking_explainer.md
- [2]: https://docs.google.com/document/d/1_AqUBS4Gr45MPPtXGTUl7Q0DMIEw2zUeWO0zo6Sj0z4/edit

Bug: 1082020
Change-Id: I78b0e81b573f735c84334a4cd2271c248609c2e8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2564924
Commit-Queue: Hayato Ito <hayato@chromium.org>
Reviewed-by: Kinuko Yasuda <kinuko@chromium.org>
Reviewed-by: Kunihiko Sakamoto <ksakamoto@chromium.org>
Cr-Commit-Position: refs/heads/master@{#834195}

--

wpt-commits: d06a8294230223801140871aa117d8901f943c0b
wpt-pr: 26736
testing/web-platform/tests/lint.ignore
testing/web-platform/tests/web-bundle/resources/generate-test-wbns.sh
testing/web-platform/tests/web-bundle/resources/nested/nested-sub.wbn [new file with mode: 0644]
testing/web-platform/tests/web-bundle/resources/wbn/nested-main.wbn [new file with mode: 0644]
testing/web-platform/tests/web-bundle/subresource-loading/subresource-loading-nested-bundle.tentative.html [new file with mode: 0644]