summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/fetch/metadata/generated
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:43:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:43:14 +0000
commit8dd16259287f58f9273002717ec4d27e97127719 (patch)
tree3863e62a53829a84037444beab3abd4ed9dfc7d0 /testing/web-platform/tests/fetch/metadata/generated
parentReleasing progress-linux version 126.0.1-1~progress7.99u1. (diff)
downloadfirefox-8dd16259287f58f9273002717ec4d27e97127719.tar.xz
firefox-8dd16259287f58f9273002717ec4d27e97127719.zip
Merging upstream version 127.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/fetch/metadata/generated')
-rw-r--r--testing/web-platform/tests/fetch/metadata/generated/appcache-manifest.https.sub.html341
-rw-r--r--testing/web-platform/tests/fetch/metadata/generated/worker-dedicated-constructor.sub.html120
2 files changed, 0 insertions, 461 deletions
diff --git a/testing/web-platform/tests/fetch/metadata/generated/appcache-manifest.https.sub.html b/testing/web-platform/tests/fetch/metadata/generated/appcache-manifest.https.sub.html
deleted file mode 100644
index cf322fd34b..0000000000
--- a/testing/web-platform/tests/fetch/metadata/generated/appcache-manifest.https.sub.html
+++ /dev/null
@@ -1,341 +0,0 @@
-<!DOCTYPE html>
-<!--
-This test was procedurally generated. Please do not modify it directly.
-Sources:
-- fetch/metadata/tools/fetch-metadata.conf.yml
-- fetch/metadata/tools/templates/appcache-manifest.sub.https.html
--->
-<html lang="en">
- <meta charset="utf-8">
- <title>HTTP headers on request for Appcache manifest</title>
- <script src="/resources/testharness.js"></script>
- <script src="/resources/testharnessreport.js"></script>
- <script src="/fetch/metadata/resources/helper.sub.js"></script>
- <body>
- <script>
- 'use strict';
-
- function induceRequest(url) {
- const iframe = document.createElement('iframe');
- iframe.src =
- '/fetch/metadata/resources/appcache-iframe.sub.html?manifest=' + encodeURIComponent(url);
-
- return new Promise((resolve) => {
- addEventListener('message', function onMessage(event) {
- if (event.source !== iframe.contentWindow) {
- return;
- }
- removeEventListener('message', onMessage);
- resolve(event.data);
- });
-
- document.body.appendChild(iframe);
- })
- .then((message) => {
- if (message !== 'okay') {
- throw message;
- }
- })
- .then(() => iframe.remove());
- }
-
- async_test((t) => {
- const key = '{{uuid()}}';
- assert_implements_optional(
- !!window.applicationCache, 'Application Cache supported.'
- );
-
- induceRequest(makeRequestURL(key, ['httpsOrigin']))
- .then(() => retrieve(key))
- .then((headers) => {
- assert_own_property(headers, 'sec-fetch-site');
- assert_array_equals(headers['sec-fetch-site'], ['same-origin']);
- })
- .then(() => t.done(), t.step_func((error) => { throw error; }));
- }, 'sec-fetch-site - Same origin');
-
- async_test((t) => {
- const key = '{{uuid()}}';
- assert_implements_optional(
- !!window.applicationCache, 'Application Cache supported.'
- );
-
- induceRequest(makeRequestURL(key, ['httpsCrossSite']))
- .then(() => retrieve(key))
- .then((headers) => {
- assert_own_property(headers, 'sec-fetch-site');
- assert_array_equals(headers['sec-fetch-site'], ['cross-site']);
- })
- .then(() => t.done(), t.step_func((error) => { throw error; }));
- }, 'sec-fetch-site - Cross-site');
-
- async_test((t) => {
- const key = '{{uuid()}}';
- assert_implements_optional(
- !!window.applicationCache, 'Application Cache supported.'
- );
-
- induceRequest(makeRequestURL(key, ['httpsSameSite']))
- .then(() => retrieve(key))
- .then((headers) => {
- assert_own_property(headers, 'sec-fetch-site');
- assert_array_equals(headers['sec-fetch-site'], ['same-site']);
- })
- .then(() => t.done(), t.step_func((error) => { throw error; }));
- }, 'sec-fetch-site - Same site');
-
- async_test((t) => {
- const key = '{{uuid()}}';
- assert_implements_optional(
- !!window.applicationCache, 'Application Cache supported.'
- );
-
- induceRequest(makeRequestURL(key, ['httpsOrigin', 'httpOrigin']))
- .then(() => retrieve(key))
- .then((headers) => {
- assert_not_own_property(headers, 'sec-fetch-site');
- })
- .then(() => t.done(), t.step_func((error) => { throw error; }));
- }, 'sec-fetch-site - HTTPS downgrade (header not sent)');
-
- async_test((t) => {
- const key = '{{uuid()}}';
- assert_implements_optional(
- !!window.applicationCache, 'Application Cache supported.'
- );
-
- induceRequest(makeRequestURL(key, ['httpOrigin', 'httpsOrigin']))
- .then(() => retrieve(key))
- .then((headers) => {
- assert_own_property(headers, 'sec-fetch-site');
- assert_array_equals(headers['sec-fetch-site'], ['cross-site']);
- })
- .then(() => t.done(), t.step_func((error) => { throw error; }));
- }, 'sec-fetch-site - HTTPS upgrade');
-
- async_test((t) => {
- const key = '{{uuid()}}';
- assert_implements_optional(
- !!window.applicationCache, 'Application Cache supported.'
- );
-
- induceRequest(makeRequestURL(key, ['httpsOrigin', 'httpOrigin', 'httpsOrigin']))
- .then(() => retrieve(key))
- .then((headers) => {
- assert_own_property(headers, 'sec-fetch-site');
- assert_array_equals(headers['sec-fetch-site'], ['cross-site']);
- })
- .then(() => t.done(), t.step_func((error) => { throw error; }));
- }, 'sec-fetch-site - HTTPS downgrade-upgrade');
-
- async_test((t) => {
- const key = '{{uuid()}}';
- assert_implements_optional(
- !!window.applicationCache, 'Application Cache supported.'
- );
-
- induceRequest(makeRequestURL(key, ['httpsOrigin', 'httpsCrossSite', 'httpsOrigin']))
- .then(() => retrieve(key))
- .then((headers) => {
- assert_own_property(headers, 'sec-fetch-site');
- assert_array_equals(headers['sec-fetch-site'], ['cross-site']);
- })
- .then(() => t.done(), t.step_func((error) => { throw error; }));
- }, 'sec-fetch-site - Same-Origin -> Cross-Site -> Same-Origin redirect');
-
- async_test((t) => {
- const key = '{{uuid()}}';
- assert_implements_optional(
- !!window.applicationCache, 'Application Cache supported.'
- );
-
- induceRequest(makeRequestURL(key, ['httpsOrigin', 'httpsSameSite', 'httpsOrigin']))
- .then(() => retrieve(key))
- .then((headers) => {
- assert_own_property(headers, 'sec-fetch-site');
- assert_array_equals(headers['sec-fetch-site'], ['same-site']);
- })
- .then(() => t.done(), t.step_func((error) => { throw error; }));
- }, 'sec-fetch-site - Same-Origin -> Same-Site -> Same-Origin redirect');
-
- async_test((t) => {
- const key = '{{uuid()}}';
- assert_implements_optional(
- !!window.applicationCache, 'Application Cache supported.'
- );
-
- induceRequest(makeRequestURL(key, ['httpsCrossSite', 'httpsOrigin']))
- .then(() => retrieve(key))
- .then((headers) => {
- assert_own_property(headers, 'sec-fetch-site');
- assert_array_equals(headers['sec-fetch-site'], ['cross-site']);
- })
- .then(() => t.done(), t.step_func((error) => { throw error; }));
- }, 'sec-fetch-site - Cross-Site -> Same Origin');
-
- async_test((t) => {
- const key = '{{uuid()}}';
- assert_implements_optional(
- !!window.applicationCache, 'Application Cache supported.'
- );
-
- induceRequest(makeRequestURL(key, ['httpsCrossSite', 'httpsSameSite']))
- .then(() => retrieve(key))
- .then((headers) => {
- assert_own_property(headers, 'sec-fetch-site');
- assert_array_equals(headers['sec-fetch-site'], ['cross-site']);
- })
- .then(() => t.done(), t.step_func((error) => { throw error; }));
- }, 'sec-fetch-site - Cross-Site -> Same-Site');
-
- async_test((t) => {
- const key = '{{uuid()}}';
- assert_implements_optional(
- !!window.applicationCache, 'Application Cache supported.'
- );
-
- induceRequest(makeRequestURL(key, ['httpsCrossSite', 'httpsCrossSite']))
- .then(() => retrieve(key))
- .then((headers) => {
- assert_own_property(headers, 'sec-fetch-site');
- assert_array_equals(headers['sec-fetch-site'], ['cross-site']);
- })
- .then(() => t.done(), t.step_func((error) => { throw error; }));
- }, 'sec-fetch-site - Cross-Site -> Cross-Site');
-
- async_test((t) => {
- const key = '{{uuid()}}';
- assert_implements_optional(
- !!window.applicationCache, 'Application Cache supported.'
- );
-
- induceRequest(makeRequestURL(key, ['httpsOrigin', 'httpsOrigin']))
- .then(() => retrieve(key))
- .then((headers) => {
- assert_own_property(headers, 'sec-fetch-site');
- assert_array_equals(headers['sec-fetch-site'], ['same-origin']);
- })
- .then(() => t.done(), t.step_func((error) => { throw error; }));
- }, 'sec-fetch-site - Same-Origin -> Same Origin');
-
- async_test((t) => {
- const key = '{{uuid()}}';
- assert_implements_optional(
- !!window.applicationCache, 'Application Cache supported.'
- );
-
- induceRequest(makeRequestURL(key, ['httpsOrigin', 'httpsSameSite']))
- .then(() => retrieve(key))
- .then((headers) => {
- assert_own_property(headers, 'sec-fetch-site');
- assert_array_equals(headers['sec-fetch-site'], ['same-site']);
- })
- .then(() => t.done(), t.step_func((error) => { throw error; }));
- }, 'sec-fetch-site - Same-Origin -> Same-Site');
-
- async_test((t) => {
- const key = '{{uuid()}}';
- assert_implements_optional(
- !!window.applicationCache, 'Application Cache supported.'
- );
-
- induceRequest(makeRequestURL(key, ['httpsOrigin', 'httpsCrossSite']))
- .then(() => retrieve(key))
- .then((headers) => {
- assert_own_property(headers, 'sec-fetch-site');
- assert_array_equals(headers['sec-fetch-site'], ['cross-site']);
- })
- .then(() => t.done(), t.step_func((error) => { throw error; }));
- }, 'sec-fetch-site - Same-Origin -> Cross-Site');
-
- async_test((t) => {
- const key = '{{uuid()}}';
- assert_implements_optional(
- !!window.applicationCache, 'Application Cache supported.'
- );
-
- induceRequest(makeRequestURL(key, ['httpsSameSite', 'httpsOrigin']))
- .then(() => retrieve(key))
- .then((headers) => {
- assert_own_property(headers, 'sec-fetch-site');
- assert_array_equals(headers['sec-fetch-site'], ['same-site']);
- })
- .then(() => t.done(), t.step_func((error) => { throw error; }));
- }, 'sec-fetch-site - Same-Site -> Same Origin');
-
- async_test((t) => {
- const key = '{{uuid()}}';
- assert_implements_optional(
- !!window.applicationCache, 'Application Cache supported.'
- );
-
- induceRequest(makeRequestURL(key, ['httpsSameSite', 'httpsSameSite']))
- .then(() => retrieve(key))
- .then((headers) => {
- assert_own_property(headers, 'sec-fetch-site');
- assert_array_equals(headers['sec-fetch-site'], ['same-site']);
- })
- .then(() => t.done(), t.step_func((error) => { throw error; }));
- }, 'sec-fetch-site - Same-Site -> Same-Site');
-
- async_test((t) => {
- const key = '{{uuid()}}';
- assert_implements_optional(
- !!window.applicationCache, 'Application Cache supported.'
- );
-
- induceRequest(makeRequestURL(key, ['httpsSameSite', 'httpsCrossSite']))
- .then(() => retrieve(key))
- .then((headers) => {
- assert_own_property(headers, 'sec-fetch-site');
- assert_array_equals(headers['sec-fetch-site'], ['cross-site']);
- })
- .then(() => t.done(), t.step_func((error) => { throw error; }));
- }, 'sec-fetch-site - Same-Site -> Cross-Site');
-
- async_test((t) => {
- const key = '{{uuid()}}';
- assert_implements_optional(
- !!window.applicationCache, 'Application Cache supported.'
- );
-
- induceRequest(makeRequestURL(key, []))
- .then(() => retrieve(key))
- .then((headers) => {
- assert_own_property(headers, 'sec-fetch-mode');
- assert_array_equals(headers['sec-fetch-mode'], ['no-cors']);
- })
- .then(() => t.done(), t.step_func((error) => { throw error; }));
- }, 'sec-fetch-mode');
-
- async_test((t) => {
- const key = '{{uuid()}}';
- assert_implements_optional(
- !!window.applicationCache, 'Application Cache supported.'
- );
-
- induceRequest(makeRequestURL(key, []))
- .then(() => retrieve(key))
- .then((headers) => {
- assert_own_property(headers, 'sec-fetch-dest');
- assert_array_equals(headers['sec-fetch-dest'], ['empty']);
- })
- .then(() => t.done(), t.step_func((error) => { throw error; }));
- }, 'sec-fetch-dest');
-
- async_test((t) => {
- const key = '{{uuid()}}';
- assert_implements_optional(
- !!window.applicationCache, 'Application Cache supported.'
- );
-
- induceRequest(makeRequestURL(key, []))
- .then(() => retrieve(key))
- .then((headers) => {
- assert_not_own_property(headers, 'sec-fetch-user');
- })
- .then(() => t.done(), t.step_func((error) => { throw error; }));
- }, 'sec-fetch-user');
- </script>
- </body>
-</html>
diff --git a/testing/web-platform/tests/fetch/metadata/generated/worker-dedicated-constructor.sub.html b/testing/web-platform/tests/fetch/metadata/generated/worker-dedicated-constructor.sub.html
index 69ac7682a5..65b1837c63 100644
--- a/testing/web-platform/tests/fetch/metadata/generated/worker-dedicated-constructor.sub.html
+++ b/testing/web-platform/tests/fetch/metadata/generated/worker-dedicated-constructor.sub.html
@@ -40,36 +40,6 @@ Sources:
const key = '{{uuid()}}';
const url = makeRequestURL(
key,
- ['httpSameSite'],
- { mime: 'application/javascript', body: 'postMessage("")' }
- );
-
- return induceRequest(url)
- .then(() => retrieve(key))
- .then((headers) => {
- assert_not_own_property(headers, 'sec-fetch-site');
- });
- }, 'sec-fetch-site - Not sent to non-trustworthy same-site destination, no options');
-
- promise_test(() => {
- const key = '{{uuid()}}';
- const url = makeRequestURL(
- key,
- ['httpCrossSite'],
- { mime: 'application/javascript', body: 'postMessage("")' }
- );
-
- return induceRequest(url)
- .then(() => retrieve(key))
- .then((headers) => {
- assert_not_own_property(headers, 'sec-fetch-site');
- });
- }, 'sec-fetch-site - Not sent to non-trustworthy cross-site destination, no options');
-
- promise_test(() => {
- const key = '{{uuid()}}';
- const url = makeRequestURL(
- key,
['httpOrigin'],
{ mime: 'application/javascript', body: 'postMessage("")' }
);
@@ -85,36 +55,6 @@ Sources:
const key = '{{uuid()}}';
const url = makeRequestURL(
key,
- ['httpSameSite'],
- { mime: 'application/javascript', body: 'postMessage("")' }
- );
-
- return induceRequest(url)
- .then(() => retrieve(key))
- .then((headers) => {
- assert_not_own_property(headers, 'sec-fetch-mode');
- });
- }, 'sec-fetch-mode - Not sent to non-trustworthy same-site destination, no options');
-
- promise_test(() => {
- const key = '{{uuid()}}';
- const url = makeRequestURL(
- key,
- ['httpCrossSite'],
- { mime: 'application/javascript', body: 'postMessage("")' }
- );
-
- return induceRequest(url)
- .then(() => retrieve(key))
- .then((headers) => {
- assert_not_own_property(headers, 'sec-fetch-mode');
- });
- }, 'sec-fetch-mode - Not sent to non-trustworthy cross-site destination, no options');
-
- promise_test(() => {
- const key = '{{uuid()}}';
- const url = makeRequestURL(
- key,
['httpOrigin'],
{ mime: 'application/javascript', body: 'postMessage("")' }
);
@@ -130,36 +70,6 @@ Sources:
const key = '{{uuid()}}';
const url = makeRequestURL(
key,
- ['httpSameSite'],
- { mime: 'application/javascript', body: 'postMessage("")' }
- );
-
- return induceRequest(url)
- .then(() => retrieve(key))
- .then((headers) => {
- assert_not_own_property(headers, 'sec-fetch-dest');
- });
- }, 'sec-fetch-dest - Not sent to non-trustworthy same-site destination, no options');
-
- promise_test(() => {
- const key = '{{uuid()}}';
- const url = makeRequestURL(
- key,
- ['httpCrossSite'],
- { mime: 'application/javascript', body: 'postMessage("")' }
- );
-
- return induceRequest(url)
- .then(() => retrieve(key))
- .then((headers) => {
- assert_not_own_property(headers, 'sec-fetch-dest');
- });
- }, 'sec-fetch-dest - Not sent to non-trustworthy cross-site destination, no options');
-
- promise_test(() => {
- const key = '{{uuid()}}';
- const url = makeRequestURL(
- key,
['httpOrigin'],
{ mime: 'application/javascript', body: 'postMessage("")' }
);
@@ -170,35 +80,5 @@ Sources:
assert_not_own_property(headers, 'sec-fetch-user');
});
}, 'sec-fetch-user - Not sent to non-trustworthy same-origin destination, no options');
-
- promise_test(() => {
- const key = '{{uuid()}}';
- const url = makeRequestURL(
- key,
- ['httpSameSite'],
- { mime: 'application/javascript', body: 'postMessage("")' }
- );
-
- return induceRequest(url)
- .then(() => retrieve(key))
- .then((headers) => {
- assert_not_own_property(headers, 'sec-fetch-user');
- });
- }, 'sec-fetch-user - Not sent to non-trustworthy same-site destination, no options');
-
- promise_test(() => {
- const key = '{{uuid()}}';
- const url = makeRequestURL(
- key,
- ['httpCrossSite'],
- { mime: 'application/javascript', body: 'postMessage("")' }
- );
-
- return induceRequest(url)
- .then(() => retrieve(key))
- .then((headers) => {
- assert_not_own_property(headers, 'sec-fetch-user');
- });
- }, 'sec-fetch-user - Not sent to non-trustworthy cross-site destination, no options');
</script>
</html>