From 0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 03:47:29 +0200 Subject: Adding upstream version 115.8.0esr. Signed-off-by: Daniel Baumann --- .../img-src/icon-allowed.sub.html | 28 +++++++++++++ .../img-src/icon-blocked.sub.html | 33 +++++++++++++++ .../img-src/img-src-4_1.sub.html | 35 ++++++++++++++++ .../img-src-full-host-wildcard-blocked.sub.html | 20 +++++++++ .../img-src-host-partial-wildcard-allowed.sub.html | 20 +++++++++ .../img-src/img-src-none-blocks.html | 20 +++++++++ .../img-src/img-src-port-wildcard-allowed.sub.html | 20 +++++++++ .../img-src/img-src-self-unique-origin.html | 49 ++++++++++++++++++++++ .../img-src/img-src-wildcard-allowed.html | 40 ++++++++++++++++++ .../img-src/report-blocked-data-uri.sub.html | 25 +++++++++++ 10 files changed, 290 insertions(+) create mode 100644 testing/web-platform/tests/content-security-policy/img-src/icon-allowed.sub.html create mode 100644 testing/web-platform/tests/content-security-policy/img-src/icon-blocked.sub.html create mode 100644 testing/web-platform/tests/content-security-policy/img-src/img-src-4_1.sub.html create mode 100644 testing/web-platform/tests/content-security-policy/img-src/img-src-full-host-wildcard-blocked.sub.html create mode 100644 testing/web-platform/tests/content-security-policy/img-src/img-src-host-partial-wildcard-allowed.sub.html create mode 100644 testing/web-platform/tests/content-security-policy/img-src/img-src-none-blocks.html create mode 100644 testing/web-platform/tests/content-security-policy/img-src/img-src-port-wildcard-allowed.sub.html create mode 100644 testing/web-platform/tests/content-security-policy/img-src/img-src-self-unique-origin.html create mode 100644 testing/web-platform/tests/content-security-policy/img-src/img-src-wildcard-allowed.html create mode 100644 testing/web-platform/tests/content-security-policy/img-src/report-blocked-data-uri.sub.html (limited to 'testing/web-platform/tests/content-security-policy/img-src') diff --git a/testing/web-platform/tests/content-security-policy/img-src/icon-allowed.sub.html b/testing/web-platform/tests/content-security-policy/img-src/icon-allowed.sub.html new file mode 100644 index 0000000000..5c8ecdee13 --- /dev/null +++ b/testing/web-platform/tests/content-security-policy/img-src/icon-allowed.sub.html @@ -0,0 +1,28 @@ + + + + + + + + +

Use callbacks to show that favicons are loaded as allowed by CSP when link tags are dynamically added to the page.

+ + + diff --git a/testing/web-platform/tests/content-security-policy/img-src/icon-blocked.sub.html b/testing/web-platform/tests/content-security-policy/img-src/icon-blocked.sub.html new file mode 100644 index 0000000000..cc882347a1 --- /dev/null +++ b/testing/web-platform/tests/content-security-policy/img-src/icon-blocked.sub.html @@ -0,0 +1,33 @@ + + + + + + + + +

Use callbacks to show that favicons are not loaded in violation of CSP when link tags are dynamically added to the page.

+ + + + diff --git a/testing/web-platform/tests/content-security-policy/img-src/img-src-4_1.sub.html b/testing/web-platform/tests/content-security-policy/img-src/img-src-4_1.sub.html new file mode 100644 index 0000000000..9e4e345a16 --- /dev/null +++ b/testing/web-platform/tests/content-security-policy/img-src/img-src-4_1.sub.html @@ -0,0 +1,35 @@ + + + + + img element src attribute must match src list. + + + + +
+ + + + diff --git a/testing/web-platform/tests/content-security-policy/img-src/img-src-full-host-wildcard-blocked.sub.html b/testing/web-platform/tests/content-security-policy/img-src/img-src-full-host-wildcard-blocked.sub.html new file mode 100644 index 0000000000..23c33d5655 --- /dev/null +++ b/testing/web-platform/tests/content-security-policy/img-src/img-src-full-host-wildcard-blocked.sub.html @@ -0,0 +1,20 @@ + + + + + img-src with full host and wildcard blocks correctly. + + + + +
+ + + + + + diff --git a/testing/web-platform/tests/content-security-policy/img-src/img-src-host-partial-wildcard-allowed.sub.html b/testing/web-platform/tests/content-security-policy/img-src/img-src-host-partial-wildcard-allowed.sub.html new file mode 100644 index 0000000000..d2d36d1341 --- /dev/null +++ b/testing/web-platform/tests/content-security-policy/img-src/img-src-host-partial-wildcard-allowed.sub.html @@ -0,0 +1,20 @@ + + + + + img-src works correctly with partial host wildcard. + + + + +
+ + + + + + diff --git a/testing/web-platform/tests/content-security-policy/img-src/img-src-none-blocks.html b/testing/web-platform/tests/content-security-policy/img-src/img-src-none-blocks.html new file mode 100644 index 0000000000..9bc0326ef8 --- /dev/null +++ b/testing/web-platform/tests/content-security-policy/img-src/img-src-none-blocks.html @@ -0,0 +1,20 @@ + + + + + img element src attribute must match src list. + + + + +
+ + + + + + diff --git a/testing/web-platform/tests/content-security-policy/img-src/img-src-port-wildcard-allowed.sub.html b/testing/web-platform/tests/content-security-policy/img-src/img-src-port-wildcard-allowed.sub.html new file mode 100644 index 0000000000..215c10089b --- /dev/null +++ b/testing/web-platform/tests/content-security-policy/img-src/img-src-port-wildcard-allowed.sub.html @@ -0,0 +1,20 @@ + + + + + img-src works correctly with port wildcard source + + + + +
+ + + + + + diff --git a/testing/web-platform/tests/content-security-policy/img-src/img-src-self-unique-origin.html b/testing/web-platform/tests/content-security-policy/img-src/img-src-self-unique-origin.html new file mode 100644 index 0000000000..dd689c02f3 --- /dev/null +++ b/testing/web-platform/tests/content-security-policy/img-src/img-src-self-unique-origin.html @@ -0,0 +1,49 @@ + + + + + img-src-self-unique-origin + + + + + +

+ The origin of an URL is called "unique" when it is considered to be + different from every origin, including itself. The origin of a + data-url is unique. When the current origin is unique, the CSP source + 'self' must not match any URL. +

+ + + + diff --git a/testing/web-platform/tests/content-security-policy/img-src/img-src-wildcard-allowed.html b/testing/web-platform/tests/content-security-policy/img-src/img-src-wildcard-allowed.html new file mode 100644 index 0000000000..72326ee6fc --- /dev/null +++ b/testing/web-platform/tests/content-security-policy/img-src/img-src-wildcard-allowed.html @@ -0,0 +1,40 @@ + + + + + img element src attribute must match src list. + + + + +
+ + + + + + + diff --git a/testing/web-platform/tests/content-security-policy/img-src/report-blocked-data-uri.sub.html b/testing/web-platform/tests/content-security-policy/img-src/report-blocked-data-uri.sub.html new file mode 100644 index 0000000000..d7405cd255 --- /dev/null +++ b/testing/web-platform/tests/content-security-policy/img-src/report-blocked-data-uri.sub.html @@ -0,0 +1,25 @@ + + + + + + + report-blocked-data-uri + + + + + + + + + + +
+ + + -- cgit v1.2.3