diff options
Diffstat (limited to 'testing/web-platform/tests/appmanifest/start_url-member/start_url-member-fail-manual.sub.html')
-rw-r--r-- | testing/web-platform/tests/appmanifest/start_url-member/start_url-member-fail-manual.sub.html | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/testing/web-platform/tests/appmanifest/start_url-member/start_url-member-fail-manual.sub.html b/testing/web-platform/tests/appmanifest/start_url-member/start_url-member-fail-manual.sub.html new file mode 100644 index 0000000000..079f048b55 --- /dev/null +++ b/testing/web-platform/tests/appmanifest/start_url-member/start_url-member-fail-manual.sub.html @@ -0,0 +1,16 @@ +<!DOCTYPE html> +<title>Test that start_url member is supported</title> +<link rel="help" href="https://w3c.github.io/manifest/#start_url-member" /> +<link rel="manifest" href="https://{{host}}:{{ports[https][0]}}/appmanifest/start_url-member/resources/start_url-member-fail.sub.webmanifest" /> +<script src="resources/start_url-member-manual.js"></script> +<h1>Cross-origin start URLs are invalid</h1> +<script> + // Force the port of the origin to be ports[https][0] (likely :8443) + // we treat the start_url's 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 start URL must not be fail.html because it's not same origin. +</p> |