Add path restriction to WebBundle subresource loading
Add path restriction so that this matches the recent change [1] of the explainer. Subresource path restriction is: > its [path](https://url.spec.whatwg.org/#concept-url-path) contains > the bundle's path as a prefix, Note that the explainer says "the bundle's path as a prefix", however, this CL uses "the bundle's path *without a filename* as a prefix" as subresource path restriction. For example, if a bundle's URL is "https://foo.com/dir/foo.wbn", a subresource's path should contain "dir/", instead of "dir/foo.wbn", as a prefix. We'll update the explainer to match the implementation. - [1] https://github.com/WICG/webpackage/pull/601. Bug: 1082020 Change-Id: I9c2d25108c4169310c395372ac8f7ae74c6a7325 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2460366 Commit-Queue: Hayato Ito <hayato@chromium.org> Reviewed-by:Kunihiko Sakamoto <ksakamoto@chromium.org> Cr-Commit-Position: refs/heads/master@{#815047}
Showing
File moved
File moved
File moved
File moved
File moved
File moved
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
File added
No preview for this file type
No preview for this file type
File moved
File moved
File moved
File moved
No preview for this file type
No preview for this file type
Please register or sign in to comment