diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 17:32:43 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 17:32:43 +0000 |
commit | 6bf0a5cb5034a7e684dcc3500e841785237ce2dd (patch) | |
tree | a68f146d7fa01f0134297619fbe7e33db084e0aa /testing/web-platform/tests/appmanifest/icons-member/icons-member-csp-manual.sub.html | |
parent | Initial commit. (diff) | |
download | thunderbird-6bf0a5cb5034a7e684dcc3500e841785237ce2dd.tar.xz thunderbird-6bf0a5cb5034a7e684dcc3500e841785237ce2dd.zip |
Adding upstream version 1:115.7.0.upstream/1%115.7.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/appmanifest/icons-member/icons-member-csp-manual.sub.html')
-rw-r--r-- | testing/web-platform/tests/appmanifest/icons-member/icons-member-csp-manual.sub.html | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/testing/web-platform/tests/appmanifest/icons-member/icons-member-csp-manual.sub.html b/testing/web-platform/tests/appmanifest/icons-member/icons-member-csp-manual.sub.html new file mode 100644 index 0000000000..c76364b83f --- /dev/null +++ b/testing/web-platform/tests/appmanifest/icons-member/icons-member-csp-manual.sub.html @@ -0,0 +1,17 @@ +<!DOCTYPE html> +<meta http-equiv="Content-Security-Policy" content="img-src {{host}}:{{ports[https][1]}}"> +<title>Test that icons member is supported (CSP check)</title> +<link rel="help" href="https://w3c.github.io/manifest#icons-member" /> +<link rel="manifest" href="resources/icons-member-csp.sub.webmanifest" /> +<script src="resources/icons-member-manual.js"></script> +<h1>Testing support for icons member (CSP check)</h1> +<script> + // Force the port of the origin to be ports[https][0] (likely :8443) + // we treat the port ports[https][1] (likely :8444) to be another origin that we fail against + if (window.location.origin !== "https://{{host}}:{{ports[https][0]}}") { + window.location = new URL(window.location.pathname, "https://{{host}}:{{ports[https][0]}}") + } +</script> +<p> + To pass, the icon must show a white check mark on a green background. +</p> |