From 6bf0a5cb5034a7e684dcc3500e841785237ce2dd Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 19:32:43 +0200 Subject: Adding upstream version 1:115.7.0. Signed-off-by: Daniel Baumann --- .../accept-header.https.tentative.html | 22 ++ .../subresource-loading/coep.https.tentative.html | 127 ++++++++ .../coep.https.tentative.html.headers | 2 + .../subresource-loading/corp.https.tentative.html | 73 +++++ .../credentials.https.tentative.sub.html | 173 +++++++++++ .../csp-allowed.https.tentative.html | 89 ++++++ .../csp-blocked.https.tentative.html | 162 ++++++++++ .../csp-blocked.https.tentative.html.sub.headers | 6 + .../csp-blockes-bundle.https.tentative.html | 66 +++++ .../element-removal.https.tentative.html | 32 ++ .../invalid-json.https.tentative.html | 47 +++ .../nested-bundle.https.tentative.html | 36 +++ .../network-error.https.tentative.sub.html | 31 ++ .../not-found.https.tentative.html | 33 +++ .../path-restriction.https.tentative.html | 52 ++++ ...url-in-web-bundle-cors.https.tentative.sub.html | 60 ++++ ...relative-url-in-web-bundle.https.tentative.html | 60 ++++ .../relative-url-resources.https.tentative.html | 80 +++++ .../relative-url-scopes.https.tentative.html | 85 ++++++ ...elative-url-static-element.https.tentative.html | 34 +++ .../relative-url-with-base.https.tentative.html | 67 +++++ .../request-destination.https.tentative.sub.html | 49 +++ ...-attributes-consistent.https.tentative.sub.html | 88 ++++++ .../resource-timing.https.tentative.html | 55 ++++ .../resources/check-cookie-and-return-bundle.py | 25 ++ .../service-worker-controlled-iframe.html | 1 + .../service-worker-for-request-monitor.js | 12 + .../reuse-web-bundle-resource.https.tentative.html | 329 +++++++++++++++++++++ .../service-worker-controlled.https.tentative.html | 138 +++++++++ ...atic-element-with-base.https.tentative.sub.html | 65 ++++ .../static-element.https.tentative.sub.html | 68 +++++ .../subframe-from-web-bundle.https.tentative.html | 134 +++++++++ .../subresource-load.https.tentative.sub.html | 294 ++++++++++++++++++ .../supports-webbundle.https.tentative.html | 15 + 34 files changed, 2610 insertions(+) create mode 100644 testing/web-platform/tests/web-bundle/subresource-loading/accept-header.https.tentative.html create mode 100644 testing/web-platform/tests/web-bundle/subresource-loading/coep.https.tentative.html create mode 100644 testing/web-platform/tests/web-bundle/subresource-loading/coep.https.tentative.html.headers create mode 100644 testing/web-platform/tests/web-bundle/subresource-loading/corp.https.tentative.html create mode 100644 testing/web-platform/tests/web-bundle/subresource-loading/credentials.https.tentative.sub.html create mode 100644 testing/web-platform/tests/web-bundle/subresource-loading/csp-allowed.https.tentative.html create mode 100644 testing/web-platform/tests/web-bundle/subresource-loading/csp-blocked.https.tentative.html create mode 100644 testing/web-platform/tests/web-bundle/subresource-loading/csp-blocked.https.tentative.html.sub.headers create mode 100644 testing/web-platform/tests/web-bundle/subresource-loading/csp-blockes-bundle.https.tentative.html create mode 100644 testing/web-platform/tests/web-bundle/subresource-loading/element-removal.https.tentative.html create mode 100644 testing/web-platform/tests/web-bundle/subresource-loading/invalid-json.https.tentative.html create mode 100644 testing/web-platform/tests/web-bundle/subresource-loading/nested-bundle.https.tentative.html create mode 100644 testing/web-platform/tests/web-bundle/subresource-loading/network-error.https.tentative.sub.html create mode 100644 testing/web-platform/tests/web-bundle/subresource-loading/not-found.https.tentative.html create mode 100644 testing/web-platform/tests/web-bundle/subresource-loading/path-restriction.https.tentative.html create mode 100644 testing/web-platform/tests/web-bundle/subresource-loading/relative-url-in-web-bundle-cors.https.tentative.sub.html create mode 100644 testing/web-platform/tests/web-bundle/subresource-loading/relative-url-in-web-bundle.https.tentative.html create mode 100644 testing/web-platform/tests/web-bundle/subresource-loading/relative-url-resources.https.tentative.html create mode 100644 testing/web-platform/tests/web-bundle/subresource-loading/relative-url-scopes.https.tentative.html create mode 100644 testing/web-platform/tests/web-bundle/subresource-loading/relative-url-static-element.https.tentative.html create mode 100644 testing/web-platform/tests/web-bundle/subresource-loading/relative-url-with-base.https.tentative.html create mode 100644 testing/web-platform/tests/web-bundle/subresource-loading/request-destination.https.tentative.sub.html create mode 100644 testing/web-platform/tests/web-bundle/subresource-loading/resource-timing-attributes-consistent.https.tentative.sub.html create mode 100644 testing/web-platform/tests/web-bundle/subresource-loading/resource-timing.https.tentative.html create mode 100644 testing/web-platform/tests/web-bundle/subresource-loading/resources/check-cookie-and-return-bundle.py create mode 100644 testing/web-platform/tests/web-bundle/subresource-loading/resources/service-worker-controlled-iframe.html create mode 100644 testing/web-platform/tests/web-bundle/subresource-loading/resources/service-worker-for-request-monitor.js create mode 100644 testing/web-platform/tests/web-bundle/subresource-loading/reuse-web-bundle-resource.https.tentative.html create mode 100644 testing/web-platform/tests/web-bundle/subresource-loading/service-worker-controlled.https.tentative.html create mode 100644 testing/web-platform/tests/web-bundle/subresource-loading/static-element-with-base.https.tentative.sub.html create mode 100644 testing/web-platform/tests/web-bundle/subresource-loading/static-element.https.tentative.sub.html create mode 100644 testing/web-platform/tests/web-bundle/subresource-loading/subframe-from-web-bundle.https.tentative.html create mode 100644 testing/web-platform/tests/web-bundle/subresource-loading/subresource-load.https.tentative.sub.html create mode 100644 testing/web-platform/tests/web-bundle/subresource-loading/supports-webbundle.https.tentative.html (limited to 'testing/web-platform/tests/web-bundle/subresource-loading') diff --git a/testing/web-platform/tests/web-bundle/subresource-loading/accept-header.https.tentative.html b/testing/web-platform/tests/web-bundle/subresource-loading/accept-header.https.tentative.html new file mode 100644 index 0000000000..68b13e53c6 --- /dev/null +++ b/testing/web-platform/tests/web-bundle/subresource-loading/accept-header.https.tentative.html @@ -0,0 +1,22 @@ + +Accept: request header in webbundle requests + + + + + + + diff --git a/testing/web-platform/tests/web-bundle/subresource-loading/coep.https.tentative.html b/testing/web-platform/tests/web-bundle/subresource-loading/coep.https.tentative.html new file mode 100644 index 0000000000..4029fc6f81 --- /dev/null +++ b/testing/web-platform/tests/web-bundle/subresource-loading/coep.https.tentative.html @@ -0,0 +1,127 @@ + +COEP for WebBundle subresource loading + + + + + + + + + + + diff --git a/testing/web-platform/tests/web-bundle/subresource-loading/coep.https.tentative.html.headers b/testing/web-platform/tests/web-bundle/subresource-loading/coep.https.tentative.html.headers new file mode 100644 index 0000000000..4e798cd9f5 --- /dev/null +++ b/testing/web-platform/tests/web-bundle/subresource-loading/coep.https.tentative.html.headers @@ -0,0 +1,2 @@ +Cross-Origin-Embedder-Policy: require-corp +Cross-Origin-Resource-Policy: cross-origin diff --git a/testing/web-platform/tests/web-bundle/subresource-loading/corp.https.tentative.html b/testing/web-platform/tests/web-bundle/subresource-loading/corp.https.tentative.html new file mode 100644 index 0000000000..ce18544b0b --- /dev/null +++ b/testing/web-platform/tests/web-bundle/subresource-loading/corp.https.tentative.html @@ -0,0 +1,73 @@ + +CORP for WebBundle subresource loading + + + + + + + + + + + diff --git a/testing/web-platform/tests/web-bundle/subresource-loading/credentials.https.tentative.sub.html b/testing/web-platform/tests/web-bundle/subresource-loading/credentials.https.tentative.sub.html new file mode 100644 index 0000000000..37efc37e6d --- /dev/null +++ b/testing/web-platform/tests/web-bundle/subresource-loading/credentials.https.tentative.sub.html @@ -0,0 +1,173 @@ + +Credentials in WebBundle subresource loading + + + + + + + diff --git a/testing/web-platform/tests/web-bundle/subresource-loading/csp-allowed.https.tentative.html b/testing/web-platform/tests/web-bundle/subresource-loading/csp-allowed.https.tentative.html new file mode 100644 index 0000000000..55498eaa4e --- /dev/null +++ b/testing/web-platform/tests/web-bundle/subresource-loading/csp-allowed.https.tentative.html @@ -0,0 +1,89 @@ + +CSP for subresource WebBundle (allowed cases) + + + + + + + + + diff --git a/testing/web-platform/tests/web-bundle/subresource-loading/csp-blocked.https.tentative.html b/testing/web-platform/tests/web-bundle/subresource-loading/csp-blocked.https.tentative.html new file mode 100644 index 0000000000..6700533b58 --- /dev/null +++ b/testing/web-platform/tests/web-bundle/subresource-loading/csp-blocked.https.tentative.html @@ -0,0 +1,162 @@ + +CSP for subresource WebBundle (blocked cases) + + + + + + + + + diff --git a/testing/web-platform/tests/web-bundle/subresource-loading/csp-blocked.https.tentative.html.sub.headers b/testing/web-platform/tests/web-bundle/subresource-loading/csp-blocked.https.tentative.html.sub.headers new file mode 100644 index 0000000000..ac826f8c48 --- /dev/null +++ b/testing/web-platform/tests/web-bundle/subresource-loading/csp-blocked.https.tentative.html.sub.headers @@ -0,0 +1,6 @@ +Expires: Mon, 26 Jul 1997 05:00:00 GMT +Cache-Control: no-store, no-cache, must-revalidate +Cache-Control: post-check=0, pre-check=0, false +Pragma: no-cache +Set-Cookie: csp-blocked-report-id={{$id:uuid()}}; Path=/web-bundle/subresource-loading/ +Report-To: { "group": "csp-group", "max_age": 10886400, "endpoints": [{ "url": "https://{{host}}:{{ports[https][0]}}/reporting/resources/report.py?op=put&reportID={{$id}}" }] } diff --git a/testing/web-platform/tests/web-bundle/subresource-loading/csp-blockes-bundle.https.tentative.html b/testing/web-platform/tests/web-bundle/subresource-loading/csp-blockes-bundle.https.tentative.html new file mode 100644 index 0000000000..06cef8c118 --- /dev/null +++ b/testing/web-platform/tests/web-bundle/subresource-loading/csp-blockes-bundle.https.tentative.html @@ -0,0 +1,66 @@ + +CSP blocks WebBundle + + + + + + + + diff --git a/testing/web-platform/tests/web-bundle/subresource-loading/element-removal.https.tentative.html b/testing/web-platform/tests/web-bundle/subresource-loading/element-removal.https.tentative.html new file mode 100644 index 0000000000..87ab8a9f15 --- /dev/null +++ b/testing/web-platform/tests/web-bundle/subresource-loading/element-removal.https.tentative.html @@ -0,0 +1,32 @@ + + + On-going subresource loading should fail immediately when the web bundle + element is removed + + + + + + + + diff --git a/testing/web-platform/tests/web-bundle/subresource-loading/invalid-json.https.tentative.html b/testing/web-platform/tests/web-bundle/subresource-loading/invalid-json.https.tentative.html new file mode 100644 index 0000000000..f4f9405e2d --- /dev/null +++ b/testing/web-platform/tests/web-bundle/subresource-loading/invalid-json.https.tentative.html @@ -0,0 +1,47 @@ + +WebBundle subresource loading with script API and invalid JSON + + + + + + diff --git a/testing/web-platform/tests/web-bundle/subresource-loading/nested-bundle.https.tentative.html b/testing/web-platform/tests/web-bundle/subresource-loading/nested-bundle.https.tentative.html new file mode 100644 index 0000000000..2e5b102e68 --- /dev/null +++ b/testing/web-platform/tests/web-bundle/subresource-loading/nested-bundle.https.tentative.html @@ -0,0 +1,36 @@ + +A nested bundle is not supported + + + + + + + + diff --git a/testing/web-platform/tests/web-bundle/subresource-loading/network-error.https.tentative.sub.html b/testing/web-platform/tests/web-bundle/subresource-loading/network-error.https.tentative.sub.html new file mode 100644 index 0000000000..3ebab3fa90 --- /dev/null +++ b/testing/web-platform/tests/web-bundle/subresource-loading/network-error.https.tentative.sub.html @@ -0,0 +1,31 @@ + +Web Bundle fetching failed due to a network error + + + + + + + diff --git a/testing/web-platform/tests/web-bundle/subresource-loading/not-found.https.tentative.html b/testing/web-platform/tests/web-bundle/subresource-loading/not-found.https.tentative.html new file mode 100644 index 0000000000..efcb6bc9fb --- /dev/null +++ b/testing/web-platform/tests/web-bundle/subresource-loading/not-found.https.tentative.html @@ -0,0 +1,33 @@ + +Web Bundle fetching failed due to not found error + + + + + + + diff --git a/testing/web-platform/tests/web-bundle/subresource-loading/path-restriction.https.tentative.html b/testing/web-platform/tests/web-bundle/subresource-loading/path-restriction.https.tentative.html new file mode 100644 index 0000000000..1d7b6f204b --- /dev/null +++ b/testing/web-platform/tests/web-bundle/subresource-loading/path-restriction.https.tentative.html @@ -0,0 +1,52 @@ + +Path restriction on subresource loading with WebBundles + + + + + + + diff --git a/testing/web-platform/tests/web-bundle/subresource-loading/relative-url-in-web-bundle-cors.https.tentative.sub.html b/testing/web-platform/tests/web-bundle/subresource-loading/relative-url-in-web-bundle-cors.https.tentative.sub.html new file mode 100644 index 0000000000..32f333b67e --- /dev/null +++ b/testing/web-platform/tests/web-bundle/subresource-loading/relative-url-in-web-bundle-cors.https.tentative.sub.html @@ -0,0 +1,60 @@ + +Relative Url in cross origin web bundle + + + + + + + + + + + + + + + diff --git a/testing/web-platform/tests/web-bundle/subresource-loading/relative-url-in-web-bundle.https.tentative.html b/testing/web-platform/tests/web-bundle/subresource-loading/relative-url-in-web-bundle.https.tentative.html new file mode 100644 index 0000000000..0b7f63c21c --- /dev/null +++ b/testing/web-platform/tests/web-bundle/subresource-loading/relative-url-in-web-bundle.https.tentative.html @@ -0,0 +1,60 @@ + +Relative Url in web bundle + + + + + + + + + + + + + + + diff --git a/testing/web-platform/tests/web-bundle/subresource-loading/relative-url-resources.https.tentative.html b/testing/web-platform/tests/web-bundle/subresource-loading/relative-url-resources.https.tentative.html new file mode 100644 index 0000000000..1b79b157c4 --- /dev/null +++ b/testing/web-platform/tests/web-bundle/subresource-loading/relative-url-resources.https.tentative.html @@ -0,0 +1,80 @@ + +Subresource loading using relative URLs in the 'resources' + + + + + + + + + diff --git a/testing/web-platform/tests/web-bundle/subresource-loading/relative-url-scopes.https.tentative.html b/testing/web-platform/tests/web-bundle/subresource-loading/relative-url-scopes.https.tentative.html new file mode 100644 index 0000000000..40a49d55d3 --- /dev/null +++ b/testing/web-platform/tests/web-bundle/subresource-loading/relative-url-scopes.https.tentative.html @@ -0,0 +1,85 @@ + +Subresource loading using relative URLs in the 'scopes' + + + + + + + + + diff --git a/testing/web-platform/tests/web-bundle/subresource-loading/relative-url-static-element.https.tentative.html b/testing/web-platform/tests/web-bundle/subresource-loading/relative-url-static-element.https.tentative.html new file mode 100644 index 0000000000..55030e234b --- /dev/null +++ b/testing/web-platform/tests/web-bundle/subresource-loading/relative-url-static-element.https.tentative.html @@ -0,0 +1,34 @@ + +WebBundle subresource loading with relative URLs for static elements + + + + + + + + + + diff --git a/testing/web-platform/tests/web-bundle/subresource-loading/relative-url-with-base.https.tentative.html b/testing/web-platform/tests/web-bundle/subresource-loading/relative-url-with-base.https.tentative.html new file mode 100644 index 0000000000..3c7e1a380c --- /dev/null +++ b/testing/web-platform/tests/web-bundle/subresource-loading/relative-url-with-base.https.tentative.html @@ -0,0 +1,67 @@ + + + Subresource loading using relative URLs in the 'resources' attribute with a + base element + + + + + + + + + + + + + + diff --git a/testing/web-platform/tests/web-bundle/subresource-loading/request-destination.https.tentative.sub.html b/testing/web-platform/tests/web-bundle/subresource-loading/request-destination.https.tentative.sub.html new file mode 100644 index 0000000000..da12f3d042 --- /dev/null +++ b/testing/web-platform/tests/web-bundle/subresource-loading/request-destination.https.tentative.sub.html @@ -0,0 +1,49 @@ + + + Request's destination must be "webbundle" with the script-based API + + + + + + + + diff --git a/testing/web-platform/tests/web-bundle/subresource-loading/resource-timing-attributes-consistent.https.tentative.sub.html b/testing/web-platform/tests/web-bundle/subresource-loading/resource-timing-attributes-consistent.https.tentative.sub.html new file mode 100644 index 0000000000..3231d69ae9 --- /dev/null +++ b/testing/web-platform/tests/web-bundle/subresource-loading/resource-timing-attributes-consistent.https.tentative.sub.html @@ -0,0 +1,88 @@ + + + + Resource timing attributes are consistent for the same-origin subresources. + + + + + + + diff --git a/testing/web-platform/tests/web-bundle/subresource-loading/resource-timing.https.tentative.html b/testing/web-platform/tests/web-bundle/subresource-loading/resource-timing.https.tentative.html new file mode 100644 index 0000000000..a2fe38de0f --- /dev/null +++ b/testing/web-platform/tests/web-bundle/subresource-loading/resource-timing.https.tentative.html @@ -0,0 +1,55 @@ + + +Resource timing entries present for uuid-in-package resources + + + + + + diff --git a/testing/web-platform/tests/web-bundle/subresource-loading/resources/check-cookie-and-return-bundle.py b/testing/web-platform/tests/web-bundle/subresource-loading/resources/check-cookie-and-return-bundle.py new file mode 100644 index 0000000000..0d4f14ecb7 --- /dev/null +++ b/testing/web-platform/tests/web-bundle/subresource-loading/resources/check-cookie-and-return-bundle.py @@ -0,0 +1,25 @@ +import os + + +def main(request, response): + origin = request.headers.get(b"origin") + + if origin is not None: + response.headers.set(b"Access-Control-Allow-Origin", origin) + response.headers.set(b"Access-Control-Allow-Methods", b"GET") + response.headers.set(b"Access-Control-Allow-Credentials", b"true") + + headers = [ + (b"Content-Type", b"application/webbundle"), + (b"X-Content-Type-Options", b"nosniff"), + ] + + cookie = request.cookies.first(b"milk", None) + if (cookie is not None) and cookie.value == b"1": + with open( + os.path.join(os.path.dirname(__file__), "../../resources/wbn/subresource.wbn"), + "rb", + ) as f: + return (200, headers, f.read()) + else: + return (400, [], "") diff --git a/testing/web-platform/tests/web-bundle/subresource-loading/resources/service-worker-controlled-iframe.html b/testing/web-platform/tests/web-bundle/subresource-loading/resources/service-worker-controlled-iframe.html new file mode 100644 index 0000000000..c8b7661f42 --- /dev/null +++ b/testing/web-platform/tests/web-bundle/subresource-loading/resources/service-worker-controlled-iframe.html @@ -0,0 +1 @@ + diff --git a/testing/web-platform/tests/web-bundle/subresource-loading/resources/service-worker-for-request-monitor.js b/testing/web-platform/tests/web-bundle/subresource-loading/resources/service-worker-for-request-monitor.js new file mode 100644 index 0000000000..f67ac70686 --- /dev/null +++ b/testing/web-platform/tests/web-bundle/subresource-loading/resources/service-worker-for-request-monitor.js @@ -0,0 +1,12 @@ + +let request_urls = []; + +self.addEventListener('fetch', e => { + request_urls.push(e.request.url); + e.respondWith(fetch(e.request)); +}); + +self.addEventListener('message', e => { + e.source.postMessage(request_urls); + request_urls = []; +}); diff --git a/testing/web-platform/tests/web-bundle/subresource-loading/reuse-web-bundle-resource.https.tentative.html b/testing/web-platform/tests/web-bundle/subresource-loading/reuse-web-bundle-resource.https.tentative.html new file mode 100644 index 0000000000..81d87bcbf0 --- /dev/null +++ b/testing/web-platform/tests/web-bundle/subresource-loading/reuse-web-bundle-resource.https.tentative.html @@ -0,0 +1,329 @@ + +script type="webbundle" reuses webbundle resources + + + + + + + + diff --git a/testing/web-platform/tests/web-bundle/subresource-loading/service-worker-controlled.https.tentative.html b/testing/web-platform/tests/web-bundle/subresource-loading/service-worker-controlled.https.tentative.html new file mode 100644 index 0000000000..d5c2a06837 --- /dev/null +++ b/testing/web-platform/tests/web-bundle/subresource-loading/service-worker-controlled.https.tentative.html @@ -0,0 +1,138 @@ + + + Web Bundle fetching and the inner resouirce fetching should skip service + worker + + + + + + + + diff --git a/testing/web-platform/tests/web-bundle/subresource-loading/static-element-with-base.https.tentative.sub.html b/testing/web-platform/tests/web-bundle/subresource-loading/static-element-with-base.https.tentative.sub.html new file mode 100644 index 0000000000..886d9cb783 --- /dev/null +++ b/testing/web-platform/tests/web-bundle/subresource-loading/static-element-with-base.https.tentative.sub.html @@ -0,0 +1,65 @@ + + + WebBundle subresource loading for static elements with a base element + + + + + + + + + + + + + + + + diff --git a/testing/web-platform/tests/web-bundle/subresource-loading/static-element.https.tentative.sub.html b/testing/web-platform/tests/web-bundle/subresource-loading/static-element.https.tentative.sub.html new file mode 100644 index 0000000000..198c8f8e5c --- /dev/null +++ b/testing/web-platform/tests/web-bundle/subresource-loading/static-element.https.tentative.sub.html @@ -0,0 +1,68 @@ + +WebBundle subresource loading for static elements + + + + + + + + + + + + + + diff --git a/testing/web-platform/tests/web-bundle/subresource-loading/subframe-from-web-bundle.https.tentative.html b/testing/web-platform/tests/web-bundle/subresource-loading/subframe-from-web-bundle.https.tentative.html new file mode 100644 index 0000000000..9e08ccdd29 --- /dev/null +++ b/testing/web-platform/tests/web-bundle/subresource-loading/subframe-from-web-bundle.https.tentative.html @@ -0,0 +1,134 @@ + +Subframe loading from Web Bundles + + + + + + + diff --git a/testing/web-platform/tests/web-bundle/subresource-loading/subresource-load.https.tentative.sub.html b/testing/web-platform/tests/web-bundle/subresource-loading/subresource-load.https.tentative.sub.html new file mode 100644 index 0000000000..10c207020c --- /dev/null +++ b/testing/web-platform/tests/web-bundle/subresource-loading/subresource-load.https.tentative.sub.html @@ -0,0 +1,294 @@ + +Subresource loading with script type="webbundle" + + + + + + + + diff --git a/testing/web-platform/tests/web-bundle/subresource-loading/supports-webbundle.https.tentative.html b/testing/web-platform/tests/web-bundle/subresource-loading/supports-webbundle.https.tentative.html new file mode 100644 index 0000000000..9beae287a0 --- /dev/null +++ b/testing/web-platform/tests/web-bundle/subresource-loading/supports-webbundle.https.tentative.html @@ -0,0 +1,15 @@ + +HTMLScriptElement.supports webbundle + + + -- cgit v1.2.3