start_url-member-fail-manual.sub.html (857B)
1 <!DOCTYPE html> 2 <title>Test that start_url member is supported</title> 3 <link rel="help" href="https://w3c.github.io/manifest/#start_url-member" /> 4 <link rel="manifest" href="https://{{host}}:{{ports[https][0]}}/appmanifest/start_url-member/resources/start_url-member-fail.sub.webmanifest" /> 5 <script src="resources/start_url-member-manual.js"></script> 6 <h1>Cross-origin start URLs are invalid</h1> 7 <script> 8 // Force the port of the origin to be ports[https][0] (likely :8443) 9 // we treat the start_url's port ports[https][1] (likely :8444) to be another origin that we fail against 10 if (window.location.origin !== "https://{{host}}:{{ports[https][0]}}") { 11 window.location = new URL(window.location.pathname, "https://{{host}}:{{ports[https][0]}}") 12 } 13 </script> 14 <p> 15 To pass, the start URL must not be fail.html because it's not same origin. 16 </p>