From 26a029d407be480d791972afb5975cf62c9360a6 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 02:47:55 +0200 Subject: Adding upstream version 124.0.1. Signed-off-by: Daniel Baumann --- .../cookies/attributes/attributes-ctl.sub.html | 99 +++++ .../tests/cookies/attributes/domain.sub.html | 24 ++ .../tests/cookies/attributes/expires.html | 56 +++ .../tests/cookies/attributes/invalid.html | 171 +++++++++ .../tests/cookies/attributes/max-age.html | 78 ++++ .../tests/cookies/attributes/path-redirect.html | 128 +++++++ .../tests/cookies/attributes/path.html | 144 ++++++++ .../attributes/resources/domain-child.sub.html | 401 +++++++++++++++++++++ .../attributes/resources/path-redirect-shared.js | 11 + .../tests/cookies/attributes/resources/path.html | 14 + .../cookies/attributes/resources/path.html.headers | 1 + .../cookies/attributes/resources/path/one.html | 14 + .../cookies/attributes/resources/path/three.html | 14 + .../cookies/attributes/resources/path/two.html | 14 + .../cookies/attributes/resources/pathfakeout.html | 14 + .../attributes/resources/pathfakeout/one.html | 14 + .../resources/secure-non-secure-child.html | 85 +++++ .../cookies/attributes/secure-non-secure.html | 23 ++ .../tests/cookies/attributes/secure.https.html | 65 ++++ 19 files changed, 1370 insertions(+) create mode 100644 testing/web-platform/tests/cookies/attributes/attributes-ctl.sub.html create mode 100644 testing/web-platform/tests/cookies/attributes/domain.sub.html create mode 100644 testing/web-platform/tests/cookies/attributes/expires.html create mode 100644 testing/web-platform/tests/cookies/attributes/invalid.html create mode 100644 testing/web-platform/tests/cookies/attributes/max-age.html create mode 100644 testing/web-platform/tests/cookies/attributes/path-redirect.html create mode 100644 testing/web-platform/tests/cookies/attributes/path.html create mode 100644 testing/web-platform/tests/cookies/attributes/resources/domain-child.sub.html create mode 100644 testing/web-platform/tests/cookies/attributes/resources/path-redirect-shared.js create mode 100644 testing/web-platform/tests/cookies/attributes/resources/path.html create mode 100644 testing/web-platform/tests/cookies/attributes/resources/path.html.headers create mode 100644 testing/web-platform/tests/cookies/attributes/resources/path/one.html create mode 100644 testing/web-platform/tests/cookies/attributes/resources/path/three.html create mode 100644 testing/web-platform/tests/cookies/attributes/resources/path/two.html create mode 100644 testing/web-platform/tests/cookies/attributes/resources/pathfakeout.html create mode 100644 testing/web-platform/tests/cookies/attributes/resources/pathfakeout/one.html create mode 100644 testing/web-platform/tests/cookies/attributes/resources/secure-non-secure-child.html create mode 100644 testing/web-platform/tests/cookies/attributes/secure-non-secure.html create mode 100644 testing/web-platform/tests/cookies/attributes/secure.https.html (limited to 'testing/web-platform/tests/cookies/attributes') diff --git a/testing/web-platform/tests/cookies/attributes/attributes-ctl.sub.html b/testing/web-platform/tests/cookies/attributes/attributes-ctl.sub.html new file mode 100644 index 0000000000..e741dfd9c2 --- /dev/null +++ b/testing/web-platform/tests/cookies/attributes/attributes-ctl.sub.html @@ -0,0 +1,99 @@ + + + + + Test cookie attribute parsing with control characters + + + + + + + + + +
+ + + diff --git a/testing/web-platform/tests/cookies/attributes/domain.sub.html b/testing/web-platform/tests/cookies/attributes/domain.sub.html new file mode 100644 index 0000000000..17bc3267c2 --- /dev/null +++ b/testing/web-platform/tests/cookies/attributes/domain.sub.html @@ -0,0 +1,24 @@ + + + + + Test cookie domain attribute parsing + + + + + + + + + + + diff --git a/testing/web-platform/tests/cookies/attributes/expires.html b/testing/web-platform/tests/cookies/attributes/expires.html new file mode 100644 index 0000000000..a6bacfd74e --- /dev/null +++ b/testing/web-platform/tests/cookies/attributes/expires.html @@ -0,0 +1,56 @@ + + + + + Test expires attribute parsing + + + + + + + + + +
+ + + \ No newline at end of file diff --git a/testing/web-platform/tests/cookies/attributes/invalid.html b/testing/web-platform/tests/cookies/attributes/invalid.html new file mode 100644 index 0000000000..6d4a53916d --- /dev/null +++ b/testing/web-platform/tests/cookies/attributes/invalid.html @@ -0,0 +1,171 @@ + + + + + Test invalid attribute parsing + + + + + + + + + +
+ + + \ No newline at end of file diff --git a/testing/web-platform/tests/cookies/attributes/max-age.html b/testing/web-platform/tests/cookies/attributes/max-age.html new file mode 100644 index 0000000000..7b7ff6ed4c --- /dev/null +++ b/testing/web-platform/tests/cookies/attributes/max-age.html @@ -0,0 +1,78 @@ + + + + + Test max-age attribute parsing + + + + + + + + + +
+ + + \ No newline at end of file diff --git a/testing/web-platform/tests/cookies/attributes/path-redirect.html b/testing/web-platform/tests/cookies/attributes/path-redirect.html new file mode 100644 index 0000000000..574879971f --- /dev/null +++ b/testing/web-platform/tests/cookies/attributes/path-redirect.html @@ -0,0 +1,128 @@ + + + + + Test cookie path attribute parsing + + + + + + + + + + + + diff --git a/testing/web-platform/tests/cookies/attributes/path.html b/testing/web-platform/tests/cookies/attributes/path.html new file mode 100644 index 0000000000..81adc08a19 --- /dev/null +++ b/testing/web-platform/tests/cookies/attributes/path.html @@ -0,0 +1,144 @@ + + + + + Test cookie path attribute parsing + + + + + + + + + + + + diff --git a/testing/web-platform/tests/cookies/attributes/resources/domain-child.sub.html b/testing/web-platform/tests/cookies/attributes/resources/domain-child.sub.html new file mode 100644 index 0000000000..515079b783 --- /dev/null +++ b/testing/web-platform/tests/cookies/attributes/resources/domain-child.sub.html @@ -0,0 +1,401 @@ + + + + + Test cookie domain attribute parsing + + + + + + + + + + + diff --git a/testing/web-platform/tests/cookies/attributes/resources/path-redirect-shared.js b/testing/web-platform/tests/cookies/attributes/resources/path-redirect-shared.js new file mode 100644 index 0000000000..777d0abd33 --- /dev/null +++ b/testing/web-platform/tests/cookies/attributes/resources/path-redirect-shared.js @@ -0,0 +1,11 @@ +// Note: this function has a dependency on testdriver.js. Any test files calling +// it should include testdriver.js and testdriver-vendor.js +window.addEventListener("message", (e) => { + setTestContextUsingRootWindow(); + if (e.data == "getAndExpireCookiesForRedirectTest") { + const cookies = document.cookie; + test_driver.delete_all_cookies().then(() => { + e.source.postMessage({"cookies": cookies}, '*'); + }); + } +}); \ No newline at end of file diff --git a/testing/web-platform/tests/cookies/attributes/resources/path.html b/testing/web-platform/tests/cookies/attributes/resources/path.html new file mode 100644 index 0000000000..5ff90b9f15 --- /dev/null +++ b/testing/web-platform/tests/cookies/attributes/resources/path.html @@ -0,0 +1,14 @@ + + + + + helper iframe for matching cookie path redirect tests + + + + + + + + + \ No newline at end of file diff --git a/testing/web-platform/tests/cookies/attributes/resources/path.html.headers b/testing/web-platform/tests/cookies/attributes/resources/path.html.headers new file mode 100644 index 0000000000..23de552c1a --- /dev/null +++ b/testing/web-platform/tests/cookies/attributes/resources/path.html.headers @@ -0,0 +1 @@ +Access-Control-Allow-Origin: * \ No newline at end of file diff --git a/testing/web-platform/tests/cookies/attributes/resources/path/one.html b/testing/web-platform/tests/cookies/attributes/resources/path/one.html new file mode 100644 index 0000000000..5ff90b9f15 --- /dev/null +++ b/testing/web-platform/tests/cookies/attributes/resources/path/one.html @@ -0,0 +1,14 @@ + + + + + helper iframe for matching cookie path redirect tests + + + + + + + + + \ No newline at end of file diff --git a/testing/web-platform/tests/cookies/attributes/resources/path/three.html b/testing/web-platform/tests/cookies/attributes/resources/path/three.html new file mode 100644 index 0000000000..5ff90b9f15 --- /dev/null +++ b/testing/web-platform/tests/cookies/attributes/resources/path/three.html @@ -0,0 +1,14 @@ + + + + + helper iframe for matching cookie path redirect tests + + + + + + + + + \ No newline at end of file diff --git a/testing/web-platform/tests/cookies/attributes/resources/path/two.html b/testing/web-platform/tests/cookies/attributes/resources/path/two.html new file mode 100644 index 0000000000..5ff90b9f15 --- /dev/null +++ b/testing/web-platform/tests/cookies/attributes/resources/path/two.html @@ -0,0 +1,14 @@ + + + + + helper iframe for matching cookie path redirect tests + + + + + + + + + \ No newline at end of file diff --git a/testing/web-platform/tests/cookies/attributes/resources/pathfakeout.html b/testing/web-platform/tests/cookies/attributes/resources/pathfakeout.html new file mode 100644 index 0000000000..5ff90b9f15 --- /dev/null +++ b/testing/web-platform/tests/cookies/attributes/resources/pathfakeout.html @@ -0,0 +1,14 @@ + + + + + helper iframe for matching cookie path redirect tests + + + + + + + + + \ No newline at end of file diff --git a/testing/web-platform/tests/cookies/attributes/resources/pathfakeout/one.html b/testing/web-platform/tests/cookies/attributes/resources/pathfakeout/one.html new file mode 100644 index 0000000000..5ff90b9f15 --- /dev/null +++ b/testing/web-platform/tests/cookies/attributes/resources/pathfakeout/one.html @@ -0,0 +1,14 @@ + + + + + helper iframe for matching cookie path redirect tests + + + + + + + + + \ No newline at end of file diff --git a/testing/web-platform/tests/cookies/attributes/resources/secure-non-secure-child.html b/testing/web-platform/tests/cookies/attributes/resources/secure-non-secure-child.html new file mode 100644 index 0000000000..e5d68b8d07 --- /dev/null +++ b/testing/web-platform/tests/cookies/attributes/resources/secure-non-secure-child.html @@ -0,0 +1,85 @@ + + + + + Test cookie secure attribute parsing (on non-secure page) + + + + + + + + + + + diff --git a/testing/web-platform/tests/cookies/attributes/secure-non-secure.html b/testing/web-platform/tests/cookies/attributes/secure-non-secure.html new file mode 100644 index 0000000000..578cdbc1f7 --- /dev/null +++ b/testing/web-platform/tests/cookies/attributes/secure-non-secure.html @@ -0,0 +1,23 @@ + + + + + Test cookie secure attribute parsing (non-secure origin) + + + + + + + + + +
+ + + diff --git a/testing/web-platform/tests/cookies/attributes/secure.https.html b/testing/web-platform/tests/cookies/attributes/secure.https.html new file mode 100644 index 0000000000..9308899694 --- /dev/null +++ b/testing/web-platform/tests/cookies/attributes/secure.https.html @@ -0,0 +1,65 @@ + + + + + Test cookie secure attribute parsing + + + + + + + + + +
+ + + -- cgit v1.2.3