summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/appmanifest/shortcuts-member/shortcuts-member-cors-fail-manual.sub.html
blob: 5b1bd84dca374861061fe1a4ce2c4cc4226335d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<!DOCTYPE html>
<title>Test that shortcuts member is supported (icon violates CORS)</title>
<link rel="help" href="https://w3c.github.io/manifest/#shortcuts-member" />
<link rel="manifest" href="resources/shortcuts-member-cors-fail.sub.webmanifest" />
<script src="resources/shortcuts-member-manual.js"></script>
<h1>Testing support for shortcuts member (icon violates CORS)</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 application <strong>must not</strong> show a shortcut with
    a white cross on red background.
</p>